@rxap/ngx-error 19.0.1-dev.4 → 19.0.1-dev.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/README.md +24 -25
- package/compodoc/changelog.html +2 -0
- package/compodoc/dependencies.html +5 -5
- package/compodoc/index.html +26 -17
- package/compodoc/js/search/search_index.js +2 -2
- package/compodoc/properties.html +4 -1
- package/docs/documentation.json +667 -678
- package/docs/html/assets/hierarchy.js +1 -0
- package/docs/{assets → html/assets}/highlight.css +13 -6
- package/docs/html/assets/icons.js +18 -0
- package/docs/html/assets/icons.svg +1 -0
- package/docs/{assets → html/assets}/main.js +5 -4
- package/docs/html/assets/navigation.js +1 -0
- package/docs/html/assets/search.js +1 -0
- package/docs/html/assets/style.css +1611 -0
- package/docs/html/classes/AngularErrorComponent.html +6 -0
- package/docs/html/classes/AngularErrorService.html +6 -0
- package/docs/html/classes/AnyHttpErrorComponent.html +4 -0
- package/docs/html/classes/AnyHttpErrorService.html +6 -0
- package/docs/html/classes/CodeHttpErrorComponent.html +5 -0
- package/docs/html/classes/CodeHttpErrorService.html +6 -0
- package/docs/html/classes/ErrorCaptureService.html +6 -0
- package/docs/html/classes/ErrorDialogComponent.html +13 -0
- package/docs/html/classes/MessageHttpErrorComponent.html +5 -0
- package/docs/html/classes/MessageHttpErrorService.html +6 -0
- package/docs/html/classes/OpenApiHttpResponseErrorComponent.html +4 -0
- package/docs/html/classes/OpenApiHttpResponseErrorService.html +6 -0
- package/docs/html/classes/RxapErrorHandler.html +8 -0
- package/docs/html/functions/DefaultErrorCodeExtractor.html +1 -0
- package/docs/html/functions/DefaultErrorFilter.html +1 -0
- package/docs/html/functions/ExtractContextFromError.html +1 -0
- package/docs/html/functions/ExtractError.html +1 -0
- package/docs/html/functions/ExtractExtraFromError.html +1 -0
- package/docs/html/functions/ExtractTagsFromError.html +1 -0
- package/docs/html/functions/HttpErrorInterceptor.html +1 -0
- package/docs/html/functions/PrintError.html +1 -0
- package/docs/html/functions/ProvideErrorHandler.html +1 -0
- package/docs/html/functions/SimplifyHttpErrorResponse.html +1 -0
- package/docs/html/hierarchy.html +1 -0
- package/docs/html/index.html +33 -0
- package/docs/html/interfaces/AngularErrorDialogData.html +7 -0
- package/docs/html/interfaces/AnyHttpErrorDialogData.html +21 -0
- package/docs/html/interfaces/CodeHttpErrorDialogData.html +22 -0
- package/docs/html/interfaces/ErrorHandlerOptions.html +4 -0
- package/docs/html/interfaces/ErrorInterceptorOptions.html +3 -0
- package/docs/html/interfaces/IErrorDialogComponent.html +2 -0
- package/docs/html/interfaces/MessageHttpErrorDialogData.html +21 -0
- package/docs/html/interfaces/OpenApiHttpResponseErrorDialogData.html +24 -0
- package/docs/html/interfaces/SimplifiedHttpErrorResponse.html +11 -0
- package/docs/html/modules.html +1 -0
- package/docs/html/variables/RXAP_ERROR_DIALOG_COMPONENT.html +1 -0
- package/docs/html/variables/RXAP_ERROR_DIALOG_DATA.html +1 -0
- package/docs/html/variables/RXAP_ERROR_DIALOG_ERROR.html +1 -0
- package/docs/html/variables/RXAP_ERROR_HANDLER_OPTIONS.html +1 -0
- package/docs/html/variables/RXAP_ERROR_INTERCEPTOR_OPTIONS.html +1 -0
- package/docs/markdown/README.md +37 -0
- package/docs/markdown/classes/AngularErrorComponent.md +77 -0
- package/docs/markdown/classes/AngularErrorService.md +109 -0
- package/docs/markdown/classes/AnyHttpErrorComponent.md +43 -0
- package/docs/markdown/classes/AnyHttpErrorService.md +119 -0
- package/docs/markdown/classes/CodeHttpErrorComponent.md +51 -0
- package/docs/markdown/classes/CodeHttpErrorService.md +109 -0
- package/docs/markdown/classes/ErrorCaptureService.md +94 -0
- package/docs/markdown/classes/ErrorDialogComponent.md +103 -0
- package/docs/markdown/classes/MessageHttpErrorComponent.md +51 -0
- package/docs/markdown/classes/MessageHttpErrorService.md +109 -0
- package/docs/markdown/classes/OpenApiHttpResponseErrorComponent.md +43 -0
- package/docs/markdown/classes/OpenApiHttpResponseErrorService.md +109 -0
- package/docs/markdown/classes/RxapErrorHandler.md +99 -0
- package/docs/markdown/functions/DefaultErrorCodeExtractor.md +21 -0
- package/docs/markdown/functions/DefaultErrorFilter.md +21 -0
- package/docs/markdown/functions/ExtractContextFromError.md +21 -0
- package/docs/markdown/functions/ExtractError.md +21 -0
- package/docs/markdown/functions/ExtractExtraFromError.md +21 -0
- package/docs/markdown/functions/ExtractTagsFromError.md +21 -0
- package/docs/markdown/functions/HttpErrorInterceptor.md +25 -0
- package/docs/markdown/functions/PrintError.md +21 -0
- package/docs/markdown/functions/ProvideErrorHandler.md +15 -0
- package/docs/markdown/functions/SimplifyHttpErrorResponse.md +21 -0
- package/docs/markdown/globals.md +54 -0
- package/docs/markdown/interfaces/AngularErrorDialogData.md +57 -0
- package/docs/markdown/interfaces/AnyHttpErrorDialogData.md +131 -0
- package/docs/markdown/interfaces/CodeHttpErrorDialogData.md +193 -0
- package/docs/markdown/interfaces/ErrorHandlerOptions.md +41 -0
- package/docs/markdown/interfaces/ErrorInterceptorOptions.md +45 -0
- package/docs/markdown/interfaces/IErrorDialogComponent.md +21 -0
- package/docs/markdown/interfaces/MessageHttpErrorDialogData.md +185 -0
- package/docs/markdown/interfaces/OpenApiHttpResponseErrorDialogData.md +207 -0
- package/docs/markdown/interfaces/SimplifiedHttpErrorResponse.md +97 -0
- package/docs/markdown/variables/RXAP_ERROR_DIALOG_COMPONENT.md +11 -0
- package/docs/markdown/variables/RXAP_ERROR_DIALOG_DATA.md +11 -0
- package/docs/markdown/variables/RXAP_ERROR_DIALOG_ERROR.md +11 -0
- package/docs/markdown/variables/RXAP_ERROR_HANDLER_OPTIONS.md +11 -0
- package/docs/markdown/variables/RXAP_ERROR_INTERCEPTOR_OPTIONS.md +11 -0
- package/docs/wiki/Class.AngularErrorComponent.md +73 -0
- package/docs/wiki/Class.AngularErrorService.md +105 -0
- package/docs/wiki/Class.AnyHttpErrorComponent.md +39 -0
- package/docs/wiki/Class.AnyHttpErrorService.md +115 -0
- package/docs/wiki/Class.CodeHttpErrorComponent.md +47 -0
- package/docs/wiki/Class.CodeHttpErrorService.md +105 -0
- package/docs/wiki/Class.ErrorCaptureService.md +90 -0
- package/docs/wiki/Class.ErrorDialogComponent.md +99 -0
- package/docs/wiki/Class.MessageHttpErrorComponent.md +47 -0
- package/docs/wiki/Class.MessageHttpErrorService.md +105 -0
- package/docs/wiki/Class.OpenApiHttpResponseErrorComponent.md +39 -0
- package/docs/wiki/Class.OpenApiHttpResponseErrorService.md +105 -0
- package/docs/wiki/Class.RxapErrorHandler.md +95 -0
- package/docs/wiki/Function.DefaultErrorCodeExtractor.md +17 -0
- package/docs/wiki/Function.DefaultErrorFilter.md +17 -0
- package/docs/wiki/Function.ExtractContextFromError.md +17 -0
- package/docs/wiki/Function.ExtractError.md +17 -0
- package/docs/wiki/Function.ExtractExtraFromError.md +17 -0
- package/docs/wiki/Function.ExtractTagsFromError.md +17 -0
- package/docs/wiki/Function.HttpErrorInterceptor.md +21 -0
- package/docs/wiki/Function.PrintError.md +17 -0
- package/docs/wiki/Function.ProvideErrorHandler.md +11 -0
- package/docs/wiki/Function.SimplifyHttpErrorResponse.md +17 -0
- package/docs/wiki/Home.md +33 -0
- package/docs/wiki/Interface.AngularErrorDialogData.md +53 -0
- package/docs/wiki/Interface.AnyHttpErrorDialogData.md +127 -0
- package/docs/wiki/Interface.CodeHttpErrorDialogData.md +189 -0
- package/docs/wiki/Interface.ErrorHandlerOptions.md +37 -0
- package/docs/wiki/Interface.ErrorInterceptorOptions.md +41 -0
- package/docs/wiki/Interface.IErrorDialogComponent.md +17 -0
- package/docs/wiki/Interface.MessageHttpErrorDialogData.md +181 -0
- package/docs/wiki/Interface.OpenApiHttpResponseErrorDialogData.md +203 -0
- package/docs/wiki/Interface.SimplifiedHttpErrorResponse.md +93 -0
- package/docs/wiki/Variable.RXAP_ERROR_DIALOG_COMPONENT.md +7 -0
- package/docs/wiki/Variable.RXAP_ERROR_DIALOG_DATA.md +7 -0
- package/docs/wiki/Variable.RXAP_ERROR_DIALOG_ERROR.md +7 -0
- package/docs/wiki/Variable.RXAP_ERROR_HANDLER_OPTIONS.md +7 -0
- package/docs/wiki/Variable.RXAP_ERROR_INTERCEPTOR_OPTIONS.md +7 -0
- package/docs/wiki/_Sidebar.md +50 -0
- package/docs/wiki/globals.md +50 -0
- package/package.json +28 -26
- package/docs/assets/icons.js +0 -15
- package/docs/assets/icons.svg +0 -1
- package/docs/assets/navigation.js +0 -1
- package/docs/assets/search.js +0 -1
- package/docs/assets/style.css +0 -1412
- package/docs/classes/AngularErrorComponent.html +0 -6
- package/docs/classes/AngularErrorService.html +0 -6
- package/docs/classes/AnyHttpErrorComponent.html +0 -4
- package/docs/classes/AnyHttpErrorService.html +0 -6
- package/docs/classes/CodeHttpErrorComponent.html +0 -5
- package/docs/classes/CodeHttpErrorService.html +0 -6
- package/docs/classes/ErrorCaptureService.html +0 -8
- package/docs/classes/ErrorDialogComponent.html +0 -12
- package/docs/classes/MessageHttpErrorComponent.html +0 -5
- package/docs/classes/MessageHttpErrorService.html +0 -6
- package/docs/classes/OpenApiHttpResponseErrorComponent.html +0 -4
- package/docs/classes/OpenApiHttpResponseErrorService.html +0 -6
- package/docs/classes/RxapErrorHandler.html +0 -8
- package/docs/functions/DefaultErrorCodeExtractor.html +0 -1
- package/docs/functions/DefaultErrorFilter.html +0 -1
- package/docs/functions/ExtractContextFromError.html +0 -1
- package/docs/functions/ExtractError.html +0 -1
- package/docs/functions/ExtractExtraFromError.html +0 -1
- package/docs/functions/ExtractTagsFromError.html +0 -1
- package/docs/functions/HttpErrorInterceptor.html +0 -1
- package/docs/functions/PrintError.html +0 -1
- package/docs/functions/ProvideErrorHandler.html +0 -1
- package/docs/functions/SimplifyHttpErrorResponse.html +0 -1
- package/docs/hierarchy.html +0 -1
- package/docs/index.html +0 -25
- package/docs/interfaces/AngularErrorDialogData.html +0 -7
- package/docs/interfaces/AnyHttpErrorDialogData.html +0 -21
- package/docs/interfaces/CodeHttpErrorDialogData.html +0 -22
- package/docs/interfaces/ErrorHandlerOptions.html +0 -4
- package/docs/interfaces/ErrorInterceptorOptions.html +0 -3
- package/docs/interfaces/IErrorDialogComponent.html +0 -2
- package/docs/interfaces/MessageHttpErrorDialogData.html +0 -21
- package/docs/interfaces/OpenApiHttpResponseErrorDialogData.html +0 -24
- package/docs/interfaces/SimplifiedHttpErrorResponse.html +0 -11
- package/docs/modules.html +0 -38
- package/docs/variables/RXAP_ERROR_DIALOG_COMPONENT.html +0 -1
- package/docs/variables/RXAP_ERROR_DIALOG_DATA.html +0 -1
- package/docs/variables/RXAP_ERROR_DIALOG_ERROR.html +0 -1
- package/docs/variables/RXAP_ERROR_HANDLER_OPTIONS.html +0 -1
- package/docs/variables/RXAP_ERROR_INTERCEPTOR_OPTIONS.html +0 -1
- /package/docs/{.nojekyll → html/.nojekyll} +0 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
[@rxap/ngx-error](../wiki/globals) / ExtractTagsFromError
|
|
2
|
+
|
|
3
|
+
# Function: ExtractTagsFromError()
|
|
4
|
+
|
|
5
|
+
> **ExtractTagsFromError**(`error`): `object`
|
|
6
|
+
|
|
7
|
+
Defined in: [utilities.ts:65](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/error/src/lib/utilities.ts#L65)
|
|
8
|
+
|
|
9
|
+
## Parameters
|
|
10
|
+
|
|
11
|
+
### error
|
|
12
|
+
|
|
13
|
+
`unknown`
|
|
14
|
+
|
|
15
|
+
## Returns
|
|
16
|
+
|
|
17
|
+
`object`
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
[@rxap/ngx-error](../wiki/globals) / HttpErrorInterceptor
|
|
2
|
+
|
|
3
|
+
# Function: HttpErrorInterceptor()
|
|
4
|
+
|
|
5
|
+
> **HttpErrorInterceptor**(`req`, `next`): `Observable`\<`HttpEvent`\<`unknown`\>\>
|
|
6
|
+
|
|
7
|
+
Defined in: [http-error-interceptor.ts:26](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/error/src/lib/http-error-interceptor.ts#L26)
|
|
8
|
+
|
|
9
|
+
## Parameters
|
|
10
|
+
|
|
11
|
+
### req
|
|
12
|
+
|
|
13
|
+
`HttpRequest`\<`unknown`\>
|
|
14
|
+
|
|
15
|
+
### next
|
|
16
|
+
|
|
17
|
+
`HttpHandlerFn`
|
|
18
|
+
|
|
19
|
+
## Returns
|
|
20
|
+
|
|
21
|
+
`Observable`\<`HttpEvent`\<`unknown`\>\>
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
[@rxap/ngx-error](../wiki/globals) / PrintError
|
|
2
|
+
|
|
3
|
+
# Function: PrintError()
|
|
4
|
+
|
|
5
|
+
> **PrintError**(`errorCandidate`): `void`
|
|
6
|
+
|
|
7
|
+
Defined in: [utilities.ts:85](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/error/src/lib/utilities.ts#L85)
|
|
8
|
+
|
|
9
|
+
## Parameters
|
|
10
|
+
|
|
11
|
+
### errorCandidate
|
|
12
|
+
|
|
13
|
+
`unknown`
|
|
14
|
+
|
|
15
|
+
## Returns
|
|
16
|
+
|
|
17
|
+
`void`
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
[@rxap/ngx-error](../wiki/globals) / ProvideErrorHandler
|
|
2
|
+
|
|
3
|
+
# Function: ProvideErrorHandler()
|
|
4
|
+
|
|
5
|
+
> **ProvideErrorHandler**(): `StaticProvider`
|
|
6
|
+
|
|
7
|
+
Defined in: [error-handler.ts:166](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/error/src/lib/error-handler.ts#L166)
|
|
8
|
+
|
|
9
|
+
## Returns
|
|
10
|
+
|
|
11
|
+
`StaticProvider`
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
[@rxap/ngx-error](../wiki/globals) / SimplifyHttpErrorResponse
|
|
2
|
+
|
|
3
|
+
# Function: SimplifyHttpErrorResponse()
|
|
4
|
+
|
|
5
|
+
> **SimplifyHttpErrorResponse**(`event`): [`SimplifiedHttpErrorResponse`](../wiki/Interface.SimplifiedHttpErrorResponse)
|
|
6
|
+
|
|
7
|
+
Defined in: [utilities.ts:19](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/error/src/lib/utilities.ts#L19)
|
|
8
|
+
|
|
9
|
+
## Parameters
|
|
10
|
+
|
|
11
|
+
### event
|
|
12
|
+
|
|
13
|
+
`HttpErrorResponse`
|
|
14
|
+
|
|
15
|
+
## Returns
|
|
16
|
+
|
|
17
|
+
[`SimplifiedHttpErrorResponse`](../wiki/Interface.SimplifiedHttpErrorResponse)
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
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 with messages or codes, and OpenAPI HTTP response errors, with customizable options for logging, displaying dialogs, and integrating with Sentry. The package aims to simplify error management and improve the user experience by providing clear and informative error messages.
|
|
2
|
+
|
|
3
|
+
[](https://www.npmjs.com/package/@rxap/ngx-error)
|
|
4
|
+
[](https://commitizen.github.io/cz-cli/)
|
|
6
|
+
[](https://github.com/prettier/prettier)
|
|
8
|
+

|
|
10
|
+

|
|
11
|
+
 -
|
|
12
|
+
[Installation](../wiki/#installation)
|
|
13
|
+
- [Generators](../wiki/#generators)
|
|
14
|
+
- [init](../wiki/#init)
|
|
15
|
+
|
|
16
|
+
# Installation **Add the package to your workspace:** ```bash yarn add
|
|
17
|
+
@rxap/ngx-error
|
|
18
|
+
```
|
|
19
|
+
**Install peer dependencies:** ```bash yarn add
|
|
20
|
+
@angular/cdk@^19.1.1 @angular/common@^19.1.3 @angular/core@^19.1.3 @rxap/components@^19.0.1-dev.4 @rxap/config@^19.0.1-dev.4 @rxap/data-grid@^19.0.1-dev.4 @rxap/environment@^19.0.1-dev.4 @rxap/open-api@^19.0.1-dev.4 @sentry/angular@^8.18.0 rxjs@^7.8.1
|
|
21
|
+
```
|
|
22
|
+
**Execute the init generator:** ```bash yarn nx g
|
|
23
|
+
@rxap/ngx-error:init ```
|
|
24
|
+
# Generators
|
|
25
|
+
|
|
26
|
+
##
|
|
27
|
+
init
|
|
28
|
+
>
|
|
29
|
+
Initialize the package in the workspace
|
|
30
|
+
|
|
31
|
+
```bash nx g
|
|
32
|
+
@rxap/ngx-error:init
|
|
33
|
+
```
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
[@rxap/ngx-error](../wiki/globals) / AngularErrorDialogData
|
|
2
|
+
|
|
3
|
+
# Interface: AngularErrorDialogData
|
|
4
|
+
|
|
5
|
+
Defined in: [error/angular-error-dialog-data.ts:1](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/error/src/lib/error/angular-error-dialog-data.ts#L1)
|
|
6
|
+
|
|
7
|
+
## Properties
|
|
8
|
+
|
|
9
|
+
### contexts
|
|
10
|
+
|
|
11
|
+
> **contexts**: `Record`\<`string`, `Record`\<`string`, `unknown`\>\>
|
|
12
|
+
|
|
13
|
+
Defined in: [error/angular-error-dialog-data.ts:5](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/error/src/lib/error/angular-error-dialog-data.ts#L5)
|
|
14
|
+
|
|
15
|
+
***
|
|
16
|
+
|
|
17
|
+
### extra
|
|
18
|
+
|
|
19
|
+
> **extra**: `Record`\<`string`, `unknown`\>
|
|
20
|
+
|
|
21
|
+
Defined in: [error/angular-error-dialog-data.ts:6](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/error/src/lib/error/angular-error-dialog-data.ts#L6)
|
|
22
|
+
|
|
23
|
+
***
|
|
24
|
+
|
|
25
|
+
### message
|
|
26
|
+
|
|
27
|
+
> **message**: `string`
|
|
28
|
+
|
|
29
|
+
Defined in: [error/angular-error-dialog-data.ts:3](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/error/src/lib/error/angular-error-dialog-data.ts#L3)
|
|
30
|
+
|
|
31
|
+
***
|
|
32
|
+
|
|
33
|
+
### name?
|
|
34
|
+
|
|
35
|
+
> `optional` **name**: `string`
|
|
36
|
+
|
|
37
|
+
Defined in: [error/angular-error-dialog-data.ts:2](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/error/src/lib/error/angular-error-dialog-data.ts#L2)
|
|
38
|
+
|
|
39
|
+
***
|
|
40
|
+
|
|
41
|
+
### stack?
|
|
42
|
+
|
|
43
|
+
> `optional` **stack**: `string`
|
|
44
|
+
|
|
45
|
+
Defined in: [error/angular-error-dialog-data.ts:4](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/error/src/lib/error/angular-error-dialog-data.ts#L4)
|
|
46
|
+
|
|
47
|
+
***
|
|
48
|
+
|
|
49
|
+
### tags
|
|
50
|
+
|
|
51
|
+
> **tags**: `Record`\<`string`, `string`\>
|
|
52
|
+
|
|
53
|
+
Defined in: [error/angular-error-dialog-data.ts:7](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/error/src/lib/error/angular-error-dialog-data.ts#L7)
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
[@rxap/ngx-error](../wiki/globals) / AnyHttpErrorDialogData
|
|
2
|
+
|
|
3
|
+
# Interface: AnyHttpErrorDialogData
|
|
4
|
+
|
|
5
|
+
Defined in: [any-http-error/any-http-error-dialog-data.ts:6](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/error/src/lib/any-http-error/any-http-error-dialog-data.ts#L6)
|
|
6
|
+
|
|
7
|
+
## Extended by
|
|
8
|
+
|
|
9
|
+
- [`OpenApiHttpResponseErrorDialogData`](../wiki/Interface.OpenApiHttpResponseErrorDialogData)
|
|
10
|
+
|
|
11
|
+
## Properties
|
|
12
|
+
|
|
13
|
+
### body?
|
|
14
|
+
|
|
15
|
+
> `optional` **body**: `any`
|
|
16
|
+
|
|
17
|
+
Defined in: [any-http-error/any-http-error-dialog-data.ts:8](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/error/src/lib/any-http-error/any-http-error-dialog-data.ts#L8)
|
|
18
|
+
|
|
19
|
+
***
|
|
20
|
+
|
|
21
|
+
### error
|
|
22
|
+
|
|
23
|
+
> **error**: `any`
|
|
24
|
+
|
|
25
|
+
Defined in: [any-http-error/any-http-error-dialog-data.ts:10](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/error/src/lib/any-http-error/any-http-error-dialog-data.ts#L10)
|
|
26
|
+
|
|
27
|
+
***
|
|
28
|
+
|
|
29
|
+
### headers
|
|
30
|
+
|
|
31
|
+
> **headers**: `Record`\<`string`, `string`[]\>
|
|
32
|
+
|
|
33
|
+
Defined in: [any-http-error/any-http-error-dialog-data.ts:17](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/error/src/lib/any-http-error/any-http-error-dialog-data.ts#L17)
|
|
34
|
+
|
|
35
|
+
All response headers.
|
|
36
|
+
|
|
37
|
+
***
|
|
38
|
+
|
|
39
|
+
### message
|
|
40
|
+
|
|
41
|
+
> **message**: `string`
|
|
42
|
+
|
|
43
|
+
Defined in: [any-http-error/any-http-error-dialog-data.ts:11](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/error/src/lib/any-http-error/any-http-error-dialog-data.ts#L11)
|
|
44
|
+
|
|
45
|
+
***
|
|
46
|
+
|
|
47
|
+
### method
|
|
48
|
+
|
|
49
|
+
> **method**: `string`
|
|
50
|
+
|
|
51
|
+
Defined in: [any-http-error/any-http-error-dialog-data.ts:7](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/error/src/lib/any-http-error/any-http-error-dialog-data.ts#L7)
|
|
52
|
+
|
|
53
|
+
***
|
|
54
|
+
|
|
55
|
+
### name
|
|
56
|
+
|
|
57
|
+
> **name**: `string`
|
|
58
|
+
|
|
59
|
+
Defined in: [any-http-error/any-http-error-dialog-data.ts:12](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/error/src/lib/any-http-error/any-http-error-dialog-data.ts#L12)
|
|
60
|
+
|
|
61
|
+
***
|
|
62
|
+
|
|
63
|
+
### ok
|
|
64
|
+
|
|
65
|
+
> **ok**: `boolean`
|
|
66
|
+
|
|
67
|
+
Defined in: [any-http-error/any-http-error-dialog-data.ts:35](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/error/src/lib/any-http-error/any-http-error-dialog-data.ts#L35)
|
|
68
|
+
|
|
69
|
+
Whether the status code falls in the 2xx range.
|
|
70
|
+
|
|
71
|
+
***
|
|
72
|
+
|
|
73
|
+
### stack?
|
|
74
|
+
|
|
75
|
+
> `optional` **stack**: `string`
|
|
76
|
+
|
|
77
|
+
Defined in: [any-http-error/any-http-error-dialog-data.ts:9](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/error/src/lib/any-http-error/any-http-error-dialog-data.ts#L9)
|
|
78
|
+
|
|
79
|
+
***
|
|
80
|
+
|
|
81
|
+
### status
|
|
82
|
+
|
|
83
|
+
> **status**: `number`
|
|
84
|
+
|
|
85
|
+
Defined in: [any-http-error/any-http-error-dialog-data.ts:21](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/error/src/lib/any-http-error/any-http-error-dialog-data.ts#L21)
|
|
86
|
+
|
|
87
|
+
Response status code.
|
|
88
|
+
|
|
89
|
+
***
|
|
90
|
+
|
|
91
|
+
### statusText
|
|
92
|
+
|
|
93
|
+
> **statusText**: `string`
|
|
94
|
+
|
|
95
|
+
Defined in: [any-http-error/any-http-error-dialog-data.ts:27](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/error/src/lib/any-http-error/any-http-error-dialog-data.ts#L27)
|
|
96
|
+
|
|
97
|
+
Textual description of response status code, defaults to OK.
|
|
98
|
+
|
|
99
|
+
Do not depend on this.
|
|
100
|
+
|
|
101
|
+
***
|
|
102
|
+
|
|
103
|
+
### timestamp
|
|
104
|
+
|
|
105
|
+
> **timestamp**: `number`
|
|
106
|
+
|
|
107
|
+
Defined in: [any-http-error/any-http-error-dialog-data.ts:13](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/error/src/lib/any-http-error/any-http-error-dialog-data.ts#L13)
|
|
108
|
+
|
|
109
|
+
***
|
|
110
|
+
|
|
111
|
+
### type
|
|
112
|
+
|
|
113
|
+
> **type**: `ResponseHeader` \| `Response`
|
|
114
|
+
|
|
115
|
+
Defined in: [any-http-error/any-http-error-dialog-data.ts:39](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/error/src/lib/any-http-error/any-http-error-dialog-data.ts#L39)
|
|
116
|
+
|
|
117
|
+
Type of the response, narrowed to either the full response or the header.
|
|
118
|
+
|
|
119
|
+
***
|
|
120
|
+
|
|
121
|
+
### url
|
|
122
|
+
|
|
123
|
+
> **url**: `null` \| `string`
|
|
124
|
+
|
|
125
|
+
Defined in: [any-http-error/any-http-error-dialog-data.ts:31](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/error/src/lib/any-http-error/any-http-error-dialog-data.ts#L31)
|
|
126
|
+
|
|
127
|
+
URL of the resource retrieved, or null if not available.
|
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
[@rxap/ngx-error](../wiki/globals) / CodeHttpErrorDialogData
|
|
2
|
+
|
|
3
|
+
# Interface: CodeHttpErrorDialogData
|
|
4
|
+
|
|
5
|
+
Defined in: [code-http-error/code-http-error-dialog-data.ts:3](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/error/src/lib/code-http-error/code-http-error-dialog-data.ts#L3)
|
|
6
|
+
|
|
7
|
+
## Extends
|
|
8
|
+
|
|
9
|
+
- `Omit`\<[`AnyHttpErrorDialogData`](../wiki/Interface.AnyHttpErrorDialogData), `"error"`\>
|
|
10
|
+
|
|
11
|
+
## Properties
|
|
12
|
+
|
|
13
|
+
### body?
|
|
14
|
+
|
|
15
|
+
> `optional` **body**: `any`
|
|
16
|
+
|
|
17
|
+
Defined in: [any-http-error/any-http-error-dialog-data.ts:8](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/error/src/lib/any-http-error/any-http-error-dialog-data.ts#L8)
|
|
18
|
+
|
|
19
|
+
#### Inherited from
|
|
20
|
+
|
|
21
|
+
`Omit.body`
|
|
22
|
+
|
|
23
|
+
***
|
|
24
|
+
|
|
25
|
+
### error
|
|
26
|
+
|
|
27
|
+
> **error**: `object` & `Record`\<`string`, `unknown`\>
|
|
28
|
+
|
|
29
|
+
Defined in: [code-http-error/code-http-error-dialog-data.ts:5](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/error/src/lib/code-http-error/code-http-error-dialog-data.ts#L5)
|
|
30
|
+
|
|
31
|
+
#### Type declaration
|
|
32
|
+
|
|
33
|
+
##### message?
|
|
34
|
+
|
|
35
|
+
> `optional` **message**: `string`
|
|
36
|
+
|
|
37
|
+
***
|
|
38
|
+
|
|
39
|
+
### errorCode
|
|
40
|
+
|
|
41
|
+
> **errorCode**: `string` \| `number`
|
|
42
|
+
|
|
43
|
+
Defined in: [code-http-error/code-http-error-dialog-data.ts:4](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/error/src/lib/code-http-error/code-http-error-dialog-data.ts#L4)
|
|
44
|
+
|
|
45
|
+
***
|
|
46
|
+
|
|
47
|
+
### headers
|
|
48
|
+
|
|
49
|
+
> **headers**: `Record`\<`string`, `string`[]\>
|
|
50
|
+
|
|
51
|
+
Defined in: [any-http-error/any-http-error-dialog-data.ts:17](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/error/src/lib/any-http-error/any-http-error-dialog-data.ts#L17)
|
|
52
|
+
|
|
53
|
+
All response headers.
|
|
54
|
+
|
|
55
|
+
#### Inherited from
|
|
56
|
+
|
|
57
|
+
`Omit.headers`
|
|
58
|
+
|
|
59
|
+
***
|
|
60
|
+
|
|
61
|
+
### message
|
|
62
|
+
|
|
63
|
+
> **message**: `string`
|
|
64
|
+
|
|
65
|
+
Defined in: [any-http-error/any-http-error-dialog-data.ts:11](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/error/src/lib/any-http-error/any-http-error-dialog-data.ts#L11)
|
|
66
|
+
|
|
67
|
+
#### Inherited from
|
|
68
|
+
|
|
69
|
+
`Omit.message`
|
|
70
|
+
|
|
71
|
+
***
|
|
72
|
+
|
|
73
|
+
### method
|
|
74
|
+
|
|
75
|
+
> **method**: `string`
|
|
76
|
+
|
|
77
|
+
Defined in: [any-http-error/any-http-error-dialog-data.ts:7](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/error/src/lib/any-http-error/any-http-error-dialog-data.ts#L7)
|
|
78
|
+
|
|
79
|
+
#### Inherited from
|
|
80
|
+
|
|
81
|
+
`Omit.method`
|
|
82
|
+
|
|
83
|
+
***
|
|
84
|
+
|
|
85
|
+
### name
|
|
86
|
+
|
|
87
|
+
> **name**: `string`
|
|
88
|
+
|
|
89
|
+
Defined in: [any-http-error/any-http-error-dialog-data.ts:12](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/error/src/lib/any-http-error/any-http-error-dialog-data.ts#L12)
|
|
90
|
+
|
|
91
|
+
#### Inherited from
|
|
92
|
+
|
|
93
|
+
`Omit.name`
|
|
94
|
+
|
|
95
|
+
***
|
|
96
|
+
|
|
97
|
+
### ok
|
|
98
|
+
|
|
99
|
+
> **ok**: `boolean`
|
|
100
|
+
|
|
101
|
+
Defined in: [any-http-error/any-http-error-dialog-data.ts:35](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/error/src/lib/any-http-error/any-http-error-dialog-data.ts#L35)
|
|
102
|
+
|
|
103
|
+
Whether the status code falls in the 2xx range.
|
|
104
|
+
|
|
105
|
+
#### Inherited from
|
|
106
|
+
|
|
107
|
+
`Omit.ok`
|
|
108
|
+
|
|
109
|
+
***
|
|
110
|
+
|
|
111
|
+
### stack?
|
|
112
|
+
|
|
113
|
+
> `optional` **stack**: `string`
|
|
114
|
+
|
|
115
|
+
Defined in: [any-http-error/any-http-error-dialog-data.ts:9](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/error/src/lib/any-http-error/any-http-error-dialog-data.ts#L9)
|
|
116
|
+
|
|
117
|
+
#### Inherited from
|
|
118
|
+
|
|
119
|
+
`Omit.stack`
|
|
120
|
+
|
|
121
|
+
***
|
|
122
|
+
|
|
123
|
+
### status
|
|
124
|
+
|
|
125
|
+
> **status**: `number`
|
|
126
|
+
|
|
127
|
+
Defined in: [any-http-error/any-http-error-dialog-data.ts:21](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/error/src/lib/any-http-error/any-http-error-dialog-data.ts#L21)
|
|
128
|
+
|
|
129
|
+
Response status code.
|
|
130
|
+
|
|
131
|
+
#### Inherited from
|
|
132
|
+
|
|
133
|
+
`Omit.status`
|
|
134
|
+
|
|
135
|
+
***
|
|
136
|
+
|
|
137
|
+
### statusText
|
|
138
|
+
|
|
139
|
+
> **statusText**: `string`
|
|
140
|
+
|
|
141
|
+
Defined in: [any-http-error/any-http-error-dialog-data.ts:27](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/error/src/lib/any-http-error/any-http-error-dialog-data.ts#L27)
|
|
142
|
+
|
|
143
|
+
Textual description of response status code, defaults to OK.
|
|
144
|
+
|
|
145
|
+
Do not depend on this.
|
|
146
|
+
|
|
147
|
+
#### Inherited from
|
|
148
|
+
|
|
149
|
+
`Omit.statusText`
|
|
150
|
+
|
|
151
|
+
***
|
|
152
|
+
|
|
153
|
+
### timestamp
|
|
154
|
+
|
|
155
|
+
> **timestamp**: `number`
|
|
156
|
+
|
|
157
|
+
Defined in: [any-http-error/any-http-error-dialog-data.ts:13](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/error/src/lib/any-http-error/any-http-error-dialog-data.ts#L13)
|
|
158
|
+
|
|
159
|
+
#### Inherited from
|
|
160
|
+
|
|
161
|
+
`Omit.timestamp`
|
|
162
|
+
|
|
163
|
+
***
|
|
164
|
+
|
|
165
|
+
### type
|
|
166
|
+
|
|
167
|
+
> **type**: `ResponseHeader` \| `Response`
|
|
168
|
+
|
|
169
|
+
Defined in: [any-http-error/any-http-error-dialog-data.ts:39](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/error/src/lib/any-http-error/any-http-error-dialog-data.ts#L39)
|
|
170
|
+
|
|
171
|
+
Type of the response, narrowed to either the full response or the header.
|
|
172
|
+
|
|
173
|
+
#### Inherited from
|
|
174
|
+
|
|
175
|
+
`Omit.type`
|
|
176
|
+
|
|
177
|
+
***
|
|
178
|
+
|
|
179
|
+
### url
|
|
180
|
+
|
|
181
|
+
> **url**: `null` \| `string`
|
|
182
|
+
|
|
183
|
+
Defined in: [any-http-error/any-http-error-dialog-data.ts:31](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/error/src/lib/any-http-error/any-http-error-dialog-data.ts#L31)
|
|
184
|
+
|
|
185
|
+
URL of the resource retrieved, or null if not available.
|
|
186
|
+
|
|
187
|
+
#### Inherited from
|
|
188
|
+
|
|
189
|
+
`Omit.url`
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
[@rxap/ngx-error](../wiki/globals) / ErrorHandlerOptions
|
|
2
|
+
|
|
3
|
+
# Interface: ErrorHandlerOptions
|
|
4
|
+
|
|
5
|
+
Defined in: [error-handler.ts:32](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/error/src/lib/error-handler.ts#L32)
|
|
6
|
+
|
|
7
|
+
## Properties
|
|
8
|
+
|
|
9
|
+
### logErrors?
|
|
10
|
+
|
|
11
|
+
> `optional` **logErrors**: `boolean`
|
|
12
|
+
|
|
13
|
+
Defined in: [error-handler.ts:33](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/error/src/lib/error-handler.ts#L33)
|
|
14
|
+
|
|
15
|
+
***
|
|
16
|
+
|
|
17
|
+
### sentry?
|
|
18
|
+
|
|
19
|
+
> `optional` **sentry**: `object`
|
|
20
|
+
|
|
21
|
+
Defined in: [error-handler.ts:35](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/error/src/lib/error-handler.ts#L35)
|
|
22
|
+
|
|
23
|
+
#### dialogOptions?
|
|
24
|
+
|
|
25
|
+
> `optional` **dialogOptions**: `ReportDialogOptions`
|
|
26
|
+
|
|
27
|
+
#### showDialog?
|
|
28
|
+
|
|
29
|
+
> `optional` **showDialog**: `boolean`
|
|
30
|
+
|
|
31
|
+
***
|
|
32
|
+
|
|
33
|
+
### showDialog?
|
|
34
|
+
|
|
35
|
+
> `optional` **showDialog**: `boolean`
|
|
36
|
+
|
|
37
|
+
Defined in: [error-handler.ts:34](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/error/src/lib/error-handler.ts#L34)
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
[@rxap/ngx-error](../wiki/globals) / ErrorInterceptorOptions
|
|
2
|
+
|
|
3
|
+
# Interface: ErrorInterceptorOptions
|
|
4
|
+
|
|
5
|
+
Defined in: [error-interceptor-options.ts:11](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/error/src/lib/error-interceptor-options.ts#L11)
|
|
6
|
+
|
|
7
|
+
## Properties
|
|
8
|
+
|
|
9
|
+
### extractErrorCode()?
|
|
10
|
+
|
|
11
|
+
> `optional` **extractErrorCode**: (`error`) => `null` \| `string` \| `number`
|
|
12
|
+
|
|
13
|
+
Defined in: [error-interceptor-options.ts:12](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/error/src/lib/error-interceptor-options.ts#L12)
|
|
14
|
+
|
|
15
|
+
#### Parameters
|
|
16
|
+
|
|
17
|
+
##### error
|
|
18
|
+
|
|
19
|
+
`HttpErrorResponse`
|
|
20
|
+
|
|
21
|
+
#### Returns
|
|
22
|
+
|
|
23
|
+
`null` \| `string` \| `number`
|
|
24
|
+
|
|
25
|
+
***
|
|
26
|
+
|
|
27
|
+
### filter?
|
|
28
|
+
|
|
29
|
+
> `optional` **filter**: (`error`) => `boolean`[]
|
|
30
|
+
|
|
31
|
+
Defined in: [error-interceptor-options.ts:13](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/error/src/lib/error-interceptor-options.ts#L13)
|
|
32
|
+
|
|
33
|
+
#### Parameters
|
|
34
|
+
|
|
35
|
+
##### error
|
|
36
|
+
|
|
37
|
+
`HttpErrorResponse`
|
|
38
|
+
|
|
39
|
+
#### Returns
|
|
40
|
+
|
|
41
|
+
`boolean`
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
[@rxap/ngx-error](../wiki/globals) / IErrorDialogComponent
|
|
2
|
+
|
|
3
|
+
# Interface: IErrorDialogComponent\<Error\>
|
|
4
|
+
|
|
5
|
+
Defined in: [error-dialog/error-dialog.component.ts:31](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/error/src/lib/error-dialog/error-dialog.component.ts#L31)
|
|
6
|
+
|
|
7
|
+
## Type Parameters
|
|
8
|
+
|
|
9
|
+
• **Error** = `any`
|
|
10
|
+
|
|
11
|
+
## Properties
|
|
12
|
+
|
|
13
|
+
### error
|
|
14
|
+
|
|
15
|
+
> **error**: `Error`
|
|
16
|
+
|
|
17
|
+
Defined in: [error-dialog/error-dialog.component.ts:32](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/error/src/lib/error-dialog/error-dialog.component.ts#L32)
|