UNPKG

@rxap/ngx-error

Version:

This package provides a comprehensive error handling solution for Angular applications, including interceptors, services, and UI components to display different types of errors in a user-friendly dialog. It supports handling of generic errors, HTTP errors

15 lines (14 loc) 718 B
import { ComponentType } from '@angular/cdk/overlay'; import { WritableSignal } from '@angular/core'; import { IErrorDialogComponent } from './error-dialog/error-dialog.component'; import * as i0 from "@angular/core"; export declare abstract class ErrorCaptureService<Error = any> { protected abstract readonly component: ComponentType<IErrorDialogComponent>; private readonly applicationRef; private errorList; push(error: Error): void; abstract compare(a: Error, b: Error): boolean; openDialog(errorList: WritableSignal<Error[]>): void; static ɵfac: i0.ɵɵFactoryDeclaration<ErrorCaptureService<any>, never>; static ɵprov: i0.ɵɵInjectableDeclaration<ErrorCaptureService<any>>; }