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

46 lines (23 loc) 1.09 kB
[**@rxap/ngx-error v19.0.3**](../README.md) *** [@rxap/ngx-error](../globals.md) / ErrorInterceptorOptions # Interface: ErrorInterceptorOptions Defined in: [error-interceptor-options.ts:11](https://gitlab.com/rxap/packages/-/blob/15b5fab8912b1042ea325e7f4d98844416018df1/packages/angular/error/src/lib/error-interceptor-options.ts#L11) ## Properties ### extractErrorCode()? > `optional` **extractErrorCode**: (`error`) => `null` \| `string` \| `number` Defined in: [error-interceptor-options.ts:12](https://gitlab.com/rxap/packages/-/blob/15b5fab8912b1042ea325e7f4d98844416018df1/packages/angular/error/src/lib/error-interceptor-options.ts#L12) #### Parameters ##### error `HttpErrorResponse` #### Returns `null` \| `string` \| `number` *** ### filter? > `optional` **filter**: (`error`) => `boolean`[] Defined in: [error-interceptor-options.ts:13](https://gitlab.com/rxap/packages/-/blob/15b5fab8912b1042ea325e7f4d98844416018df1/packages/angular/error/src/lib/error-interceptor-options.ts#L13) #### Parameters ##### error `HttpErrorResponse` #### Returns `boolean`