UNPKG

@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

98 lines (50 loc) 2.55 kB
[**@rxap/ngx-error v19.2.0**](../README.md) *** [@rxap/ngx-error](../globals.md) / AnyHttpErrorService # Class: AnyHttpErrorService\<Error\> Defined in: [any-http-error/any-http-error.service.ts:9](https://gitlab.com/rxap/packages/-/blob/36b0e9732b24717840935712e316593ff6aba795/packages/angular/error/src/lib/any-http-error/any-http-error.service.ts#L9) ## Extends - [`ErrorCaptureService`](ErrorCaptureService.md)\<`Error`\> ## Extended by - [`OpenApiHttpResponseErrorService`](OpenApiHttpResponseErrorService.md) - [`MessageHttpErrorService`](MessageHttpErrorService.md) - [`CodeHttpErrorService`](CodeHttpErrorService.md) ## Type Parameters • **Error** *extends* [`AnyHttpErrorDialogData`](../interfaces/AnyHttpErrorDialogData.md) = [`AnyHttpErrorDialogData`](../interfaces/AnyHttpErrorDialogData.md) ## Constructors ### new AnyHttpErrorService() > **new AnyHttpErrorService**\<`Error`\>(): [`AnyHttpErrorService`](AnyHttpErrorService.md)\<`Error`\> #### Returns [`AnyHttpErrorService`](AnyHttpErrorService.md)\<`Error`\> #### Inherited from [`ErrorCaptureService`](ErrorCaptureService.md).[`constructor`](ErrorCaptureService.md#constructors) ## Properties ### component > `protected` `readonly` **component**: `ComponentType`\<[`IErrorDialogComponent`](../interfaces/IErrorDialogComponent.md)\<`any`\>\> = `AnyHttpErrorComponent` Defined in: [any-http-error/any-http-error.service.ts:12](https://gitlab.com/rxap/packages/-/blob/36b0e9732b24717840935712e316593ff6aba795/packages/angular/error/src/lib/any-http-error/any-http-error.service.ts#L12) #### Overrides [`ErrorCaptureService`](ErrorCaptureService.md).[`component`](ErrorCaptureService.md#component) ## Methods ### compare() > **compare**(`a`, `b`): `boolean` Defined in: [any-http-error/any-http-error.service.ts:14](https://gitlab.com/rxap/packages/-/blob/36b0e9732b24717840935712e316593ff6aba795/packages/angular/error/src/lib/any-http-error/any-http-error.service.ts#L14) #### Parameters ##### a `Error` ##### b `Error` #### Returns `boolean` #### Overrides [`ErrorCaptureService`](ErrorCaptureService.md).[`compare`](ErrorCaptureService.md#compare) *** ### push() > **push**(`error`): `void` Defined in: [error-capture.service.ts:23](https://gitlab.com/rxap/packages/-/blob/36b0e9732b24717840935712e316593ff6aba795/packages/angular/error/src/lib/error-capture.service.ts#L23) #### Parameters ##### error `Error` #### Returns `void` #### Inherited from [`ErrorCaptureService`](ErrorCaptureService.md).[`push`](ErrorCaptureService.md#push)