@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
94 lines (48 loc) • 2.66 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/3eebed1be2bbb37bc0d65959f8fecbb850c0b8aa/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/3eebed1be2bbb37bc0d65959f8fecbb850c0b8aa/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/3eebed1be2bbb37bc0d65959f8fecbb850c0b8aa/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)
***
### push()
> **push**(`error`): `void`
Defined in: [error-capture.service.ts:23](https://gitlab.com/rxap/packages/-/blob/3eebed1be2bbb37bc0d65959f8fecbb850c0b8aa/packages/angular/error/src/lib/error-capture.service.ts#L23)
#### Parameters
##### error
`Error`
#### Returns
`void`
#### Inherited from
[`ErrorCaptureService`](../wiki/Class.ErrorCaptureService).[`push`](../wiki/Class.ErrorCaptureService#push)