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