src/lib/code-http-error/code-http-error.service.ts
Properties |
|
Methods |
| compare | |||||||||
compare(a: CodeHttpErrorDialogData, b: CodeHttpErrorDialogData)
|
|||||||||
|
Inherited from
ErrorCaptureService
|
|||||||||
|
Defined in
ErrorCaptureService:11
|
|||||||||
|
Parameters :
Returns :
boolean
|
| openDialog | ||||||
openDialog(errorList: WritableSignal
|
||||||
|
Inherited from
ErrorCaptureService
|
||||||
|
Defined in
ErrorCaptureService:48
|
||||||
|
Parameters :
Returns :
void
|
| push | ||||||
push(error: Error)
|
||||||
|
Inherited from
ErrorCaptureService
|
||||||
|
Defined in
ErrorCaptureService:29
|
||||||
|
Parameters :
Returns :
void
|
| Protected Readonly component |
Default value : CodeHttpErrorComponent
|
|
Inherited from
ErrorCaptureService
|
|
Defined in
ErrorCaptureService:9
|
import { Injectable } from '@angular/core';
import { AnyHttpErrorService } from '../any-http-error/any-http-error.service';
import { CodeHttpErrorDialogData } from './code-http-error-dialog-data';
import { CodeHttpErrorComponent } from './code-http-error.component';
@Injectable({ providedIn: 'root' })
export class CodeHttpErrorService extends AnyHttpErrorService<CodeHttpErrorDialogData> {
protected override readonly component = CodeHttpErrorComponent;
override compare(a: CodeHttpErrorDialogData, b: CodeHttpErrorDialogData): boolean {
return super.compare(a, b) && a.errorCode === b.errorCode;
}
}