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

8 lines (7 loc) 419 B
import { HttpErrorResponse } from '@angular/common/http'; export declare function DefaultErrorCodeExtractor(error: HttpErrorResponse): number | string | null; export declare function DefaultErrorFilter(error: HttpErrorResponse): boolean; export interface ErrorInterceptorOptions { extractErrorCode?: (error: HttpErrorResponse) => number | string | null; filter?: Array<(error: HttpErrorResponse) => boolean>; }