@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) • 405 B
Markdown
[@rxap/ngx-error](../wiki/globals) / ExtractError
# Function: ExtractError()
> **ExtractError**(`error`): `string` \| `HttpErrorResponse` \| `Error`
Defined in: [utilities.ts:69](https://gitlab.com/rxap/packages/-/blob/15b5fab8912b1042ea325e7f4d98844416018df1/packages/angular/error/src/lib/utilities.ts#L69)
## Parameters
### error
`unknown`
## Returns
`string` \| `HttpErrorResponse` \| `Error`