@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
88 lines (44 loc) • 2.36 kB
Markdown
[**@rxap/ngx-error v19.1.0**](../README.md)
***
[@rxap/ngx-error](../globals.md) / CodeHttpErrorService
# Class: CodeHttpErrorService
Defined in: [code-http-error/code-http-error.service.ts:7](https://gitlab.com/rxap/packages/-/blob/3eebed1be2bbb37bc0d65959f8fecbb850c0b8aa/packages/angular/error/src/lib/code-http-error/code-http-error.service.ts#L7)
## Extends
- [`AnyHttpErrorService`](AnyHttpErrorService.md)\<[`CodeHttpErrorDialogData`](../interfaces/CodeHttpErrorDialogData.md)\>
## Constructors
### new CodeHttpErrorService()
> **new CodeHttpErrorService**(): [`CodeHttpErrorService`](CodeHttpErrorService.md)
#### Returns
[`CodeHttpErrorService`](CodeHttpErrorService.md)
#### Inherited from
[`AnyHttpErrorService`](AnyHttpErrorService.md).[`constructor`](AnyHttpErrorService.md#constructors)
## Properties
### component
> `protected` `readonly` **component**: *typeof* [`CodeHttpErrorComponent`](CodeHttpErrorComponent.md) = `CodeHttpErrorComponent`
Defined in: [code-http-error/code-http-error.service.ts:9](https://gitlab.com/rxap/packages/-/blob/3eebed1be2bbb37bc0d65959f8fecbb850c0b8aa/packages/angular/error/src/lib/code-http-error/code-http-error.service.ts#L9)
#### Overrides
[`AnyHttpErrorService`](AnyHttpErrorService.md).[`component`](AnyHttpErrorService.md#component)
## Methods
### compare()
> **compare**(`a`, `b`): `boolean`
Defined in: [code-http-error/code-http-error.service.ts:11](https://gitlab.com/rxap/packages/-/blob/3eebed1be2bbb37bc0d65959f8fecbb850c0b8aa/packages/angular/error/src/lib/code-http-error/code-http-error.service.ts#L11)
#### Parameters
##### a
[`CodeHttpErrorDialogData`](../interfaces/CodeHttpErrorDialogData.md)
##### b
[`CodeHttpErrorDialogData`](../interfaces/CodeHttpErrorDialogData.md)
#### Returns
`boolean`
#### Overrides
[`AnyHttpErrorService`](AnyHttpErrorService.md).[`compare`](AnyHttpErrorService.md#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
[`CodeHttpErrorDialogData`](../interfaces/CodeHttpErrorDialogData.md)
#### Returns
`void`
#### Inherited from
[`AnyHttpErrorService`](AnyHttpErrorService.md).[`push`](AnyHttpErrorService.md#push)