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

106 lines (53 loc) 2.9 kB
[@rxap/ngx-error](../wiki/globals) / AngularErrorService # Class: AngularErrorService Defined in: [error/angular-error.service.ts:7](https://gitlab.com/rxap/packages/-/blob/15b5fab8912b1042ea325e7f4d98844416018df1/packages/angular/error/src/lib/error/angular-error.service.ts#L7) ## Extends - [`ErrorCaptureService`](../wiki/Class.ErrorCaptureService)\<[`AngularErrorDialogData`](../wiki/Interface.AngularErrorDialogData)\> ## Constructors ### new AngularErrorService() > **new AngularErrorService**(): [`AngularErrorService`](../wiki/Class.AngularErrorService) #### Returns [`AngularErrorService`](../wiki/Class.AngularErrorService) #### Inherited from [`ErrorCaptureService`](../wiki/Class.ErrorCaptureService).[`constructor`](../wiki/Class.ErrorCaptureService#constructors) ## Properties ### component > `protected` `readonly` **component**: *typeof* [`AngularErrorComponent`](../wiki/Class.AngularErrorComponent) = `AngularErrorComponent` Defined in: [error/angular-error.service.ts:9](https://gitlab.com/rxap/packages/-/blob/15b5fab8912b1042ea325e7f4d98844416018df1/packages/angular/error/src/lib/error/angular-error.service.ts#L9) #### Overrides [`ErrorCaptureService`](../wiki/Class.ErrorCaptureService).[`component`](../wiki/Class.ErrorCaptureService#component) ## Methods ### compare() > **compare**(`a`, `b`): `boolean` Defined in: [error/angular-error.service.ts:11](https://gitlab.com/rxap/packages/-/blob/15b5fab8912b1042ea325e7f4d98844416018df1/packages/angular/error/src/lib/error/angular-error.service.ts#L11) #### Parameters ##### a [`AngularErrorDialogData`](../wiki/Interface.AngularErrorDialogData) ##### b [`AngularErrorDialogData`](../wiki/Interface.AngularErrorDialogData) #### Returns `boolean` #### Overrides [`ErrorCaptureService`](../wiki/Class.ErrorCaptureService).[`compare`](../wiki/Class.ErrorCaptureService#compare) *** ### 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`\<[`AngularErrorDialogData`](../wiki/Interface.AngularErrorDialogData)[]\> #### Returns `void` #### Inherited from [`ErrorCaptureService`](../wiki/Class.ErrorCaptureService).[`openDialog`](../wiki/Class.ErrorCaptureService#opendialog) *** ### 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 [`AngularErrorDialogData`](../wiki/Interface.AngularErrorDialogData) #### Returns `void` #### Inherited from [`ErrorCaptureService`](../wiki/Class.ErrorCaptureService).[`push`](../wiki/Class.ErrorCaptureService#push)