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

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