@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
116 lines (59 loc) • 3.14 kB
Markdown
[@rxap/ngx-error](../wiki/globals) / AnyHttpErrorService
# Class: AnyHttpErrorService\<Error\>
Defined in: [any-http-error/any-http-error.service.ts:9](https://gitlab.com/rxap/packages/-/blob/15b5fab8912b1042ea325e7f4d98844416018df1/packages/angular/error/src/lib/any-http-error/any-http-error.service.ts#L9)
## Extends
- [`ErrorCaptureService`](../wiki/Class.ErrorCaptureService)\<`Error`\>
## Extended by
- [`OpenApiHttpResponseErrorService`](../wiki/Class.OpenApiHttpResponseErrorService)
- [`MessageHttpErrorService`](../wiki/Class.MessageHttpErrorService)
- [`CodeHttpErrorService`](../wiki/Class.CodeHttpErrorService)
## Type Parameters
• **Error** *extends* [`AnyHttpErrorDialogData`](../wiki/Interface.AnyHttpErrorDialogData) = [`AnyHttpErrorDialogData`](../wiki/Interface.AnyHttpErrorDialogData)
## Constructors
### new AnyHttpErrorService()
> **new AnyHttpErrorService**\<`Error`\>(): [`AnyHttpErrorService`](../wiki/Class.AnyHttpErrorService)\<`Error`\>
#### Returns
[`AnyHttpErrorService`](../wiki/Class.AnyHttpErrorService)\<`Error`\>
#### Inherited from
[`ErrorCaptureService`](../wiki/Class.ErrorCaptureService).[`constructor`](../wiki/Class.ErrorCaptureService#constructors)
## Properties
### component
> `protected` `readonly` **component**: `ComponentType`\<[`IErrorDialogComponent`](../wiki/Interface.IErrorDialogComponent)\<`any`\>\> = `AnyHttpErrorComponent`
Defined in: [any-http-error/any-http-error.service.ts:12](https://gitlab.com/rxap/packages/-/blob/15b5fab8912b1042ea325e7f4d98844416018df1/packages/angular/error/src/lib/any-http-error/any-http-error.service.ts#L12)
#### Overrides
[`ErrorCaptureService`](../wiki/Class.ErrorCaptureService).[`component`](../wiki/Class.ErrorCaptureService#component)
## Methods
### compare()
> **compare**(`a`, `b`): `boolean`
Defined in: [any-http-error/any-http-error.service.ts:14](https://gitlab.com/rxap/packages/-/blob/15b5fab8912b1042ea325e7f4d98844416018df1/packages/angular/error/src/lib/any-http-error/any-http-error.service.ts#L14)
#### Parameters
##### a
`Error`
##### b
`Error`
#### Returns
`boolean`
#### Overrides
[`ErrorCaptureService`](../wiki/Class.ErrorCaptureService).[`compare`](../wiki/Class.ErrorCaptureService#compare)
***
### openDialog()
> **openDialog**(`errorList`): `void`
Defined in: [error-capture.service.ts:48](https://gitlab.com/rxap/packages/-/blob/15b5fab8912b1042ea325e7f4d98844416018df1/packages/angular/error/src/lib/error-capture.service.ts#L48)
#### Parameters
##### errorList
`WritableSignal`\<`Error`[]\>
#### Returns
`void`
#### Inherited from
[`ErrorCaptureService`](../wiki/Class.ErrorCaptureService).[`openDialog`](../wiki/Class.ErrorCaptureService#opendialog)
***
### push()
> **push**(`error`): `void`
Defined in: [error-capture.service.ts:29](https://gitlab.com/rxap/packages/-/blob/15b5fab8912b1042ea325e7f4d98844416018df1/packages/angular/error/src/lib/error-capture.service.ts#L29)
#### Parameters
##### error
`Error`
#### Returns
`void`
#### Inherited from
[`ErrorCaptureService`](../wiki/Class.ErrorCaptureService).[`push`](../wiki/Class.ErrorCaptureService#push)