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

42 lines (21 loc) 1.04 kB
[@rxap/ngx-error](../wiki/globals) / 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`