@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
18 lines (9 loc) • 460 B
Markdown
[@rxap/ngx-error](../wiki/globals) / DefaultErrorCodeExtractor
# Function: DefaultErrorCodeExtractor()
> **DefaultErrorCodeExtractor**(`error`): `null` \| `string` \| `number`
Defined in: [error-interceptor-options.ts:3](https://gitlab.com/rxap/packages/-/blob/15b5fab8912b1042ea325e7f4d98844416018df1/packages/angular/error/src/lib/error-interceptor-options.ts#L3)
## Parameters
### error
`HttpErrorResponse`
## Returns
`null` \| `string` \| `number`