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

95 lines (48 loc) 2.05 kB
[**@rxap/ngx-error v19.0.3**](../README.md) *** [@rxap/ngx-error](../globals.md) / ErrorCaptureService # Class: `abstract` ErrorCaptureService\<Error\> Defined in: [error-capture.service.ts:23](https://gitlab.com/rxap/packages/-/blob/15b5fab8912b1042ea325e7f4d98844416018df1/packages/angular/error/src/lib/error-capture.service.ts#L23) ## Extended by - [`AngularErrorService`](AngularErrorService.md) - [`AnyHttpErrorService`](AnyHttpErrorService.md) ## Type Parameters • **Error** = `any` ## Constructors ### new ErrorCaptureService() > **new ErrorCaptureService**\<`Error`\>(): [`ErrorCaptureService`](ErrorCaptureService.md)\<`Error`\> #### Returns [`ErrorCaptureService`](ErrorCaptureService.md)\<`Error`\> ## Properties ### component > `abstract` `protected` `readonly` **component**: `ComponentType`\<[`IErrorDialogComponent`](../interfaces/IErrorDialogComponent.md)\<`any`\>\> Defined in: [error-capture.service.ts:25](https://gitlab.com/rxap/packages/-/blob/15b5fab8912b1042ea325e7f4d98844416018df1/packages/angular/error/src/lib/error-capture.service.ts#L25) ## Methods ### compare() > `abstract` **compare**(`a`, `b`): `boolean` Defined in: [error-capture.service.ts:46](https://gitlab.com/rxap/packages/-/blob/15b5fab8912b1042ea325e7f4d98844416018df1/packages/angular/error/src/lib/error-capture.service.ts#L46) #### Parameters ##### a `Error` ##### b `Error` #### Returns `boolean` *** ### 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` *** ### 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`