@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
66 lines (33 loc) • 1.97 kB
Markdown
[@rxap/ngx-error](../wiki/globals) / 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`](../wiki/Interface.IErrorCaptureDialogService)\<`Error`\>
## Constructors
### new ErrorCaptureDialogService()
> **new ErrorCaptureDialogService**\<`Error`\>(): [`ErrorCaptureDialogService`](../wiki/Class.ErrorCaptureDialogService)\<`Error`\>
#### Returns
[`ErrorCaptureDialogService`](../wiki/Class.ErrorCaptureDialogService)\<`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`](../wiki/Interface.IErrorDialogComponent)\<`any`\>\>
##### errorList
`WritableSignal`\<`Error`[]\>
#### Returns
`Observable`\<`void`\>
#### Implementation of
[`IErrorCaptureDialogService`](../wiki/Interface.IErrorCaptureDialogService).[`open`](../wiki/Interface.IErrorCaptureDialogService#open)