src/lib/message-http-error/message-http-error.service.ts
Properties |
|
Methods |
| compare | |||||||||
compare(a: MessageHttpErrorDialogData, b: MessageHttpErrorDialogData)
|
|||||||||
|
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 : MessageHttpErrorComponent
|
|
Inherited from
ErrorCaptureService
|
|
Defined in
ErrorCaptureService:9
|
import { Injectable } from '@angular/core';
import { AnyHttpErrorService } from '../any-http-error/any-http-error.service';
import { MessageHttpErrorDialogData } from './message-http-error-dialog-data';
import { MessageHttpErrorComponent } from './message-http-error.component';
@Injectable({ providedIn: 'root' })
export class MessageHttpErrorService extends AnyHttpErrorService<MessageHttpErrorDialogData> {
protected override readonly component = MessageHttpErrorComponent;
override compare(a: MessageHttpErrorDialogData, b: MessageHttpErrorDialogData): boolean {
return super.compare(a, b) && a.error.message === b.error.message;
}
}