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

77 lines (39 loc) 1.72 kB
[**@rxap/ngx-error v19.1.0**](../README.md) *** [@rxap/ngx-error](../globals.md) / ErrorCaptureService # Class: `abstract` ErrorCaptureService\<Error\> Defined in: [error-capture.service.ts:16](https://gitlab.com/rxap/packages/-/blob/3eebed1be2bbb37bc0d65959f8fecbb850c0b8aa/packages/angular/error/src/lib/error-capture.service.ts#L16) ## 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:18](https://gitlab.com/rxap/packages/-/blob/3eebed1be2bbb37bc0d65959f8fecbb850c0b8aa/packages/angular/error/src/lib/error-capture.service.ts#L18) ## Methods ### compare() > `abstract` **compare**(`a`, `b`): `boolean` Defined in: [error-capture.service.ts:40](https://gitlab.com/rxap/packages/-/blob/3eebed1be2bbb37bc0d65959f8fecbb850c0b8aa/packages/angular/error/src/lib/error-capture.service.ts#L40) #### Parameters ##### a `Error` ##### b `Error` #### Returns `boolean` *** ### 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`