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

13 lines (12 loc) 623 B
import { ComponentType } from '@angular/cdk/overlay'; 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 errorCaptureDialogService; private errorList; push(error: Error): void; abstract compare(a: Error, b: Error): boolean; static ɵfac: i0.ɵɵFactoryDeclaration<ErrorCaptureService<any>, never>; static ɵprov: i0.ɵɵInjectableDeclaration<ErrorCaptureService<any>>; }