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.2.0**](../README.md) *** [@rxap/ngx-error](../globals.md) / ErrorInterceptorOptions # Interface: ErrorInterceptorOptions Defined in: [error-interceptor-options.ts:11](https://gitlab.com/rxap/packages/-/blob/36b0e9732b24717840935712e316593ff6aba795/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/36b0e9732b24717840935712e316593ff6aba795/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/36b0e9732b24717840935712e316593ff6aba795/packages/angular/error/src/lib/error-interceptor-options.ts#L13) #### Parameters ##### error `HttpErrorResponse` #### Returns `boolean`