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

70 lines (35 loc) 1.99 kB
[**@rxap/ngx-error v19.1.0**](../README.md) *** [@rxap/ngx-error](../globals.md) / ErrorCaptureDialogService # Class: ErrorCaptureDialogService\<Error\> Defined in: [error-capture-dialog.service.ts:31](https://gitlab.com/rxap/packages/-/blob/3eebed1be2bbb37bc0d65959f8fecbb850c0b8aa/packages/angular/error/src/lib/error-capture-dialog.service.ts#L31) ## Type Parameters • **Error** = `any` ## Implements - [`IErrorCaptureDialogService`](../interfaces/IErrorCaptureDialogService.md)\<`Error`\> ## Constructors ### new ErrorCaptureDialogService() > **new ErrorCaptureDialogService**\<`Error`\>(): [`ErrorCaptureDialogService`](ErrorCaptureDialogService.md)\<`Error`\> #### Returns [`ErrorCaptureDialogService`](ErrorCaptureDialogService.md)\<`Error`\> ## Properties ### applicationRef > `protected` `readonly` **applicationRef**: `ApplicationRef` Defined in: [error-capture-dialog.service.ts:33](https://gitlab.com/rxap/packages/-/blob/3eebed1be2bbb37bc0d65959f8fecbb850c0b8aa/packages/angular/error/src/lib/error-capture-dialog.service.ts#L33) *** ### document > `protected` `readonly` **document**: `Document` Defined in: [error-capture-dialog.service.ts:34](https://gitlab.com/rxap/packages/-/blob/3eebed1be2bbb37bc0d65959f8fecbb850c0b8aa/packages/angular/error/src/lib/error-capture-dialog.service.ts#L34) ## Methods ### open() > **open**(`component`, `errorList`): `Observable`\<`void`\> Defined in: [error-capture-dialog.service.ts:36](https://gitlab.com/rxap/packages/-/blob/3eebed1be2bbb37bc0d65959f8fecbb850c0b8aa/packages/angular/error/src/lib/error-capture-dialog.service.ts#L36) #### Parameters ##### component `ComponentType`\<[`IErrorDialogComponent`](../interfaces/IErrorDialogComponent.md)\<`any`\>\> ##### errorList `WritableSignal`\<`Error`[]\> #### Returns `Observable`\<`void`\> #### Implementation of [`IErrorCaptureDialogService`](../interfaces/IErrorCaptureDialogService.md).[`open`](../interfaces/IErrorCaptureDialogService.md#open)