@rxap/ngx-error 19.0.1-dev.2 → 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 +12 -0
- package/README.md +24 -25
- package/compodoc/changelog.html +6 -0
- package/compodoc/dependencies.html +6 -6
- 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 +29 -27
- package/theme.css +1 -1
- 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,99 @@
|
|
|
1
|
+
[**@rxap/ngx-error**](../README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[@rxap/ngx-error](../globals.md) / RxapErrorHandler
|
|
6
|
+
|
|
7
|
+
# Class: RxapErrorHandler
|
|
8
|
+
|
|
9
|
+
Defined in: [error-handler.ts:47](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/error/src/lib/error-handler.ts#L47)
|
|
10
|
+
|
|
11
|
+
## Implements
|
|
12
|
+
|
|
13
|
+
- `ErrorHandler`
|
|
14
|
+
|
|
15
|
+
## Constructors
|
|
16
|
+
|
|
17
|
+
### new RxapErrorHandler()
|
|
18
|
+
|
|
19
|
+
> **new RxapErrorHandler**(): [`RxapErrorHandler`](RxapErrorHandler.md)
|
|
20
|
+
|
|
21
|
+
#### Returns
|
|
22
|
+
|
|
23
|
+
[`RxapErrorHandler`](RxapErrorHandler.md)
|
|
24
|
+
|
|
25
|
+
## Properties
|
|
26
|
+
|
|
27
|
+
### injector
|
|
28
|
+
|
|
29
|
+
> `protected` `readonly` **injector**: `Injector`
|
|
30
|
+
|
|
31
|
+
Defined in: [error-handler.ts:64](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/error/src/lib/error-handler.ts#L64)
|
|
32
|
+
|
|
33
|
+
***
|
|
34
|
+
|
|
35
|
+
### options
|
|
36
|
+
|
|
37
|
+
> `protected` `readonly` **options**: [`ErrorHandlerOptions`](../interfaces/ErrorHandlerOptions.md)
|
|
38
|
+
|
|
39
|
+
Defined in: [error-handler.ts:49](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/error/src/lib/error-handler.ts#L49)
|
|
40
|
+
|
|
41
|
+
## Methods
|
|
42
|
+
|
|
43
|
+
### handleError()
|
|
44
|
+
|
|
45
|
+
> **handleError**(`errorCandidate`): `void`
|
|
46
|
+
|
|
47
|
+
Defined in: [error-handler.ts:69](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/error/src/lib/error-handler.ts#L69)
|
|
48
|
+
|
|
49
|
+
Method called for every value captured through the ErrorHandler
|
|
50
|
+
|
|
51
|
+
#### Parameters
|
|
52
|
+
|
|
53
|
+
##### errorCandidate
|
|
54
|
+
|
|
55
|
+
`unknown`
|
|
56
|
+
|
|
57
|
+
#### Returns
|
|
58
|
+
|
|
59
|
+
`void`
|
|
60
|
+
|
|
61
|
+
#### Implementation of
|
|
62
|
+
|
|
63
|
+
`ErrorHandler.handleError`
|
|
64
|
+
|
|
65
|
+
***
|
|
66
|
+
|
|
67
|
+
### showAngularErrorDialog()
|
|
68
|
+
|
|
69
|
+
> `protected` **showAngularErrorDialog**(`data`): `void`
|
|
70
|
+
|
|
71
|
+
Defined in: [error-handler.ts:157](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/error/src/lib/error-handler.ts#L157)
|
|
72
|
+
|
|
73
|
+
#### Parameters
|
|
74
|
+
|
|
75
|
+
##### data
|
|
76
|
+
|
|
77
|
+
[`AngularErrorDialogData`](../interfaces/AngularErrorDialogData.md)
|
|
78
|
+
|
|
79
|
+
#### Returns
|
|
80
|
+
|
|
81
|
+
`void`
|
|
82
|
+
|
|
83
|
+
***
|
|
84
|
+
|
|
85
|
+
### showOpenApiHttpResponseErrorDialog()
|
|
86
|
+
|
|
87
|
+
> `protected` **showOpenApiHttpResponseErrorDialog**(`data`): `void`
|
|
88
|
+
|
|
89
|
+
Defined in: [error-handler.ts:151](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/error/src/lib/error-handler.ts#L151)
|
|
90
|
+
|
|
91
|
+
#### Parameters
|
|
92
|
+
|
|
93
|
+
##### data
|
|
94
|
+
|
|
95
|
+
[`OpenApiHttpResponseErrorDialogData`](../interfaces/OpenApiHttpResponseErrorDialogData.md)
|
|
96
|
+
|
|
97
|
+
#### Returns
|
|
98
|
+
|
|
99
|
+
`void`
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
[**@rxap/ngx-error**](../README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[@rxap/ngx-error](../globals.md) / DefaultErrorCodeExtractor
|
|
6
|
+
|
|
7
|
+
# Function: DefaultErrorCodeExtractor()
|
|
8
|
+
|
|
9
|
+
> **DefaultErrorCodeExtractor**(`error`): `null` \| `string` \| `number`
|
|
10
|
+
|
|
11
|
+
Defined in: [error-interceptor-options.ts:3](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/error/src/lib/error-interceptor-options.ts#L3)
|
|
12
|
+
|
|
13
|
+
## Parameters
|
|
14
|
+
|
|
15
|
+
### error
|
|
16
|
+
|
|
17
|
+
`HttpErrorResponse`
|
|
18
|
+
|
|
19
|
+
## Returns
|
|
20
|
+
|
|
21
|
+
`null` \| `string` \| `number`
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
[**@rxap/ngx-error**](../README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[@rxap/ngx-error](../globals.md) / DefaultErrorFilter
|
|
6
|
+
|
|
7
|
+
# Function: DefaultErrorFilter()
|
|
8
|
+
|
|
9
|
+
> **DefaultErrorFilter**(`error`): `boolean`
|
|
10
|
+
|
|
11
|
+
Defined in: [error-interceptor-options.ts:7](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/error/src/lib/error-interceptor-options.ts#L7)
|
|
12
|
+
|
|
13
|
+
## Parameters
|
|
14
|
+
|
|
15
|
+
### error
|
|
16
|
+
|
|
17
|
+
`HttpErrorResponse`
|
|
18
|
+
|
|
19
|
+
## Returns
|
|
20
|
+
|
|
21
|
+
`boolean`
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
[**@rxap/ngx-error**](../README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[@rxap/ngx-error](../globals.md) / ExtractContextFromError
|
|
6
|
+
|
|
7
|
+
# Function: ExtractContextFromError()
|
|
8
|
+
|
|
9
|
+
> **ExtractContextFromError**(`error`): `Record`\<`string`, `Record`\<`string`, `unknown`\>\>
|
|
10
|
+
|
|
11
|
+
Defined in: [utilities.ts:51](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/error/src/lib/utilities.ts#L51)
|
|
12
|
+
|
|
13
|
+
## Parameters
|
|
14
|
+
|
|
15
|
+
### error
|
|
16
|
+
|
|
17
|
+
`unknown`
|
|
18
|
+
|
|
19
|
+
## Returns
|
|
20
|
+
|
|
21
|
+
`Record`\<`string`, `Record`\<`string`, `unknown`\>\>
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
[**@rxap/ngx-error**](../README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[@rxap/ngx-error](../globals.md) / ExtractError
|
|
6
|
+
|
|
7
|
+
# Function: ExtractError()
|
|
8
|
+
|
|
9
|
+
> **ExtractError**(`error`): `string` \| `HttpErrorResponse` \| `Error`
|
|
10
|
+
|
|
11
|
+
Defined in: [utilities.ts:69](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/error/src/lib/utilities.ts#L69)
|
|
12
|
+
|
|
13
|
+
## Parameters
|
|
14
|
+
|
|
15
|
+
### error
|
|
16
|
+
|
|
17
|
+
`unknown`
|
|
18
|
+
|
|
19
|
+
## Returns
|
|
20
|
+
|
|
21
|
+
`string` \| `HttpErrorResponse` \| `Error`
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
[**@rxap/ngx-error**](../README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[@rxap/ngx-error](../globals.md) / ExtractExtraFromError
|
|
6
|
+
|
|
7
|
+
# Function: ExtractExtraFromError()
|
|
8
|
+
|
|
9
|
+
> **ExtractExtraFromError**(`error`): `object`
|
|
10
|
+
|
|
11
|
+
Defined in: [utilities.ts:61](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/error/src/lib/utilities.ts#L61)
|
|
12
|
+
|
|
13
|
+
## Parameters
|
|
14
|
+
|
|
15
|
+
### error
|
|
16
|
+
|
|
17
|
+
`unknown`
|
|
18
|
+
|
|
19
|
+
## Returns
|
|
20
|
+
|
|
21
|
+
`object`
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
[**@rxap/ngx-error**](../README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[@rxap/ngx-error](../globals.md) / ExtractTagsFromError
|
|
6
|
+
|
|
7
|
+
# Function: ExtractTagsFromError()
|
|
8
|
+
|
|
9
|
+
> **ExtractTagsFromError**(`error`): `object`
|
|
10
|
+
|
|
11
|
+
Defined in: [utilities.ts:65](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/error/src/lib/utilities.ts#L65)
|
|
12
|
+
|
|
13
|
+
## Parameters
|
|
14
|
+
|
|
15
|
+
### error
|
|
16
|
+
|
|
17
|
+
`unknown`
|
|
18
|
+
|
|
19
|
+
## Returns
|
|
20
|
+
|
|
21
|
+
`object`
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
[**@rxap/ngx-error**](../README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[@rxap/ngx-error](../globals.md) / HttpErrorInterceptor
|
|
6
|
+
|
|
7
|
+
# Function: HttpErrorInterceptor()
|
|
8
|
+
|
|
9
|
+
> **HttpErrorInterceptor**(`req`, `next`): `Observable`\<`HttpEvent`\<`unknown`\>\>
|
|
10
|
+
|
|
11
|
+
Defined in: [http-error-interceptor.ts:26](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/error/src/lib/http-error-interceptor.ts#L26)
|
|
12
|
+
|
|
13
|
+
## Parameters
|
|
14
|
+
|
|
15
|
+
### req
|
|
16
|
+
|
|
17
|
+
`HttpRequest`\<`unknown`\>
|
|
18
|
+
|
|
19
|
+
### next
|
|
20
|
+
|
|
21
|
+
`HttpHandlerFn`
|
|
22
|
+
|
|
23
|
+
## Returns
|
|
24
|
+
|
|
25
|
+
`Observable`\<`HttpEvent`\<`unknown`\>\>
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
[**@rxap/ngx-error**](../README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[@rxap/ngx-error](../globals.md) / PrintError
|
|
6
|
+
|
|
7
|
+
# Function: PrintError()
|
|
8
|
+
|
|
9
|
+
> **PrintError**(`errorCandidate`): `void`
|
|
10
|
+
|
|
11
|
+
Defined in: [utilities.ts:85](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/error/src/lib/utilities.ts#L85)
|
|
12
|
+
|
|
13
|
+
## Parameters
|
|
14
|
+
|
|
15
|
+
### errorCandidate
|
|
16
|
+
|
|
17
|
+
`unknown`
|
|
18
|
+
|
|
19
|
+
## Returns
|
|
20
|
+
|
|
21
|
+
`void`
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
[**@rxap/ngx-error**](../README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[@rxap/ngx-error](../globals.md) / ProvideErrorHandler
|
|
6
|
+
|
|
7
|
+
# Function: ProvideErrorHandler()
|
|
8
|
+
|
|
9
|
+
> **ProvideErrorHandler**(): `StaticProvider`
|
|
10
|
+
|
|
11
|
+
Defined in: [error-handler.ts:166](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/error/src/lib/error-handler.ts#L166)
|
|
12
|
+
|
|
13
|
+
## Returns
|
|
14
|
+
|
|
15
|
+
`StaticProvider`
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
[**@rxap/ngx-error**](../README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[@rxap/ngx-error](../globals.md) / SimplifyHttpErrorResponse
|
|
6
|
+
|
|
7
|
+
# Function: SimplifyHttpErrorResponse()
|
|
8
|
+
|
|
9
|
+
> **SimplifyHttpErrorResponse**(`event`): [`SimplifiedHttpErrorResponse`](../interfaces/SimplifiedHttpErrorResponse.md)
|
|
10
|
+
|
|
11
|
+
Defined in: [utilities.ts:19](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/error/src/lib/utilities.ts#L19)
|
|
12
|
+
|
|
13
|
+
## Parameters
|
|
14
|
+
|
|
15
|
+
### event
|
|
16
|
+
|
|
17
|
+
`HttpErrorResponse`
|
|
18
|
+
|
|
19
|
+
## Returns
|
|
20
|
+
|
|
21
|
+
[`SimplifiedHttpErrorResponse`](../interfaces/SimplifiedHttpErrorResponse.md)
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
[**@rxap/ngx-error**](README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
# @rxap/ngx-error
|
|
6
|
+
|
|
7
|
+
## Classes
|
|
8
|
+
|
|
9
|
+
- [AngularErrorComponent](classes/AngularErrorComponent.md)
|
|
10
|
+
- [AngularErrorService](classes/AngularErrorService.md)
|
|
11
|
+
- [AnyHttpErrorComponent](classes/AnyHttpErrorComponent.md)
|
|
12
|
+
- [AnyHttpErrorService](classes/AnyHttpErrorService.md)
|
|
13
|
+
- [CodeHttpErrorComponent](classes/CodeHttpErrorComponent.md)
|
|
14
|
+
- [CodeHttpErrorService](classes/CodeHttpErrorService.md)
|
|
15
|
+
- [ErrorCaptureService](classes/ErrorCaptureService.md)
|
|
16
|
+
- [ErrorDialogComponent](classes/ErrorDialogComponent.md)
|
|
17
|
+
- [MessageHttpErrorComponent](classes/MessageHttpErrorComponent.md)
|
|
18
|
+
- [MessageHttpErrorService](classes/MessageHttpErrorService.md)
|
|
19
|
+
- [OpenApiHttpResponseErrorComponent](classes/OpenApiHttpResponseErrorComponent.md)
|
|
20
|
+
- [OpenApiHttpResponseErrorService](classes/OpenApiHttpResponseErrorService.md)
|
|
21
|
+
- [RxapErrorHandler](classes/RxapErrorHandler.md)
|
|
22
|
+
|
|
23
|
+
## Interfaces
|
|
24
|
+
|
|
25
|
+
- [AngularErrorDialogData](interfaces/AngularErrorDialogData.md)
|
|
26
|
+
- [AnyHttpErrorDialogData](interfaces/AnyHttpErrorDialogData.md)
|
|
27
|
+
- [CodeHttpErrorDialogData](interfaces/CodeHttpErrorDialogData.md)
|
|
28
|
+
- [ErrorHandlerOptions](interfaces/ErrorHandlerOptions.md)
|
|
29
|
+
- [ErrorInterceptorOptions](interfaces/ErrorInterceptorOptions.md)
|
|
30
|
+
- [IErrorDialogComponent](interfaces/IErrorDialogComponent.md)
|
|
31
|
+
- [MessageHttpErrorDialogData](interfaces/MessageHttpErrorDialogData.md)
|
|
32
|
+
- [OpenApiHttpResponseErrorDialogData](interfaces/OpenApiHttpResponseErrorDialogData.md)
|
|
33
|
+
- [SimplifiedHttpErrorResponse](interfaces/SimplifiedHttpErrorResponse.md)
|
|
34
|
+
|
|
35
|
+
## Variables
|
|
36
|
+
|
|
37
|
+
- [RXAP\_ERROR\_DIALOG\_COMPONENT](variables/RXAP_ERROR_DIALOG_COMPONENT.md)
|
|
38
|
+
- [RXAP\_ERROR\_DIALOG\_DATA](variables/RXAP_ERROR_DIALOG_DATA.md)
|
|
39
|
+
- [RXAP\_ERROR\_DIALOG\_ERROR](variables/RXAP_ERROR_DIALOG_ERROR.md)
|
|
40
|
+
- [RXAP\_ERROR\_HANDLER\_OPTIONS](variables/RXAP_ERROR_HANDLER_OPTIONS.md)
|
|
41
|
+
- [RXAP\_ERROR\_INTERCEPTOR\_OPTIONS](variables/RXAP_ERROR_INTERCEPTOR_OPTIONS.md)
|
|
42
|
+
|
|
43
|
+
## Functions
|
|
44
|
+
|
|
45
|
+
- [DefaultErrorCodeExtractor](functions/DefaultErrorCodeExtractor.md)
|
|
46
|
+
- [DefaultErrorFilter](functions/DefaultErrorFilter.md)
|
|
47
|
+
- [ExtractContextFromError](functions/ExtractContextFromError.md)
|
|
48
|
+
- [ExtractError](functions/ExtractError.md)
|
|
49
|
+
- [ExtractExtraFromError](functions/ExtractExtraFromError.md)
|
|
50
|
+
- [ExtractTagsFromError](functions/ExtractTagsFromError.md)
|
|
51
|
+
- [HttpErrorInterceptor](functions/HttpErrorInterceptor.md)
|
|
52
|
+
- [PrintError](functions/PrintError.md)
|
|
53
|
+
- [ProvideErrorHandler](functions/ProvideErrorHandler.md)
|
|
54
|
+
- [SimplifyHttpErrorResponse](functions/SimplifyHttpErrorResponse.md)
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
[**@rxap/ngx-error**](../README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[@rxap/ngx-error](../globals.md) / AngularErrorDialogData
|
|
6
|
+
|
|
7
|
+
# Interface: AngularErrorDialogData
|
|
8
|
+
|
|
9
|
+
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)
|
|
10
|
+
|
|
11
|
+
## Properties
|
|
12
|
+
|
|
13
|
+
### contexts
|
|
14
|
+
|
|
15
|
+
> **contexts**: `Record`\<`string`, `Record`\<`string`, `unknown`\>\>
|
|
16
|
+
|
|
17
|
+
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)
|
|
18
|
+
|
|
19
|
+
***
|
|
20
|
+
|
|
21
|
+
### extra
|
|
22
|
+
|
|
23
|
+
> **extra**: `Record`\<`string`, `unknown`\>
|
|
24
|
+
|
|
25
|
+
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)
|
|
26
|
+
|
|
27
|
+
***
|
|
28
|
+
|
|
29
|
+
### message
|
|
30
|
+
|
|
31
|
+
> **message**: `string`
|
|
32
|
+
|
|
33
|
+
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)
|
|
34
|
+
|
|
35
|
+
***
|
|
36
|
+
|
|
37
|
+
### name?
|
|
38
|
+
|
|
39
|
+
> `optional` **name**: `string`
|
|
40
|
+
|
|
41
|
+
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)
|
|
42
|
+
|
|
43
|
+
***
|
|
44
|
+
|
|
45
|
+
### stack?
|
|
46
|
+
|
|
47
|
+
> `optional` **stack**: `string`
|
|
48
|
+
|
|
49
|
+
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)
|
|
50
|
+
|
|
51
|
+
***
|
|
52
|
+
|
|
53
|
+
### tags
|
|
54
|
+
|
|
55
|
+
> **tags**: `Record`\<`string`, `string`\>
|
|
56
|
+
|
|
57
|
+
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,131 @@
|
|
|
1
|
+
[**@rxap/ngx-error**](../README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[@rxap/ngx-error](../globals.md) / AnyHttpErrorDialogData
|
|
6
|
+
|
|
7
|
+
# Interface: AnyHttpErrorDialogData
|
|
8
|
+
|
|
9
|
+
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)
|
|
10
|
+
|
|
11
|
+
## Extended by
|
|
12
|
+
|
|
13
|
+
- [`OpenApiHttpResponseErrorDialogData`](OpenApiHttpResponseErrorDialogData.md)
|
|
14
|
+
|
|
15
|
+
## Properties
|
|
16
|
+
|
|
17
|
+
### body?
|
|
18
|
+
|
|
19
|
+
> `optional` **body**: `any`
|
|
20
|
+
|
|
21
|
+
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)
|
|
22
|
+
|
|
23
|
+
***
|
|
24
|
+
|
|
25
|
+
### error
|
|
26
|
+
|
|
27
|
+
> **error**: `any`
|
|
28
|
+
|
|
29
|
+
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)
|
|
30
|
+
|
|
31
|
+
***
|
|
32
|
+
|
|
33
|
+
### headers
|
|
34
|
+
|
|
35
|
+
> **headers**: `Record`\<`string`, `string`[]\>
|
|
36
|
+
|
|
37
|
+
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)
|
|
38
|
+
|
|
39
|
+
All response headers.
|
|
40
|
+
|
|
41
|
+
***
|
|
42
|
+
|
|
43
|
+
### message
|
|
44
|
+
|
|
45
|
+
> **message**: `string`
|
|
46
|
+
|
|
47
|
+
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)
|
|
48
|
+
|
|
49
|
+
***
|
|
50
|
+
|
|
51
|
+
### method
|
|
52
|
+
|
|
53
|
+
> **method**: `string`
|
|
54
|
+
|
|
55
|
+
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)
|
|
56
|
+
|
|
57
|
+
***
|
|
58
|
+
|
|
59
|
+
### name
|
|
60
|
+
|
|
61
|
+
> **name**: `string`
|
|
62
|
+
|
|
63
|
+
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)
|
|
64
|
+
|
|
65
|
+
***
|
|
66
|
+
|
|
67
|
+
### ok
|
|
68
|
+
|
|
69
|
+
> **ok**: `boolean`
|
|
70
|
+
|
|
71
|
+
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)
|
|
72
|
+
|
|
73
|
+
Whether the status code falls in the 2xx range.
|
|
74
|
+
|
|
75
|
+
***
|
|
76
|
+
|
|
77
|
+
### stack?
|
|
78
|
+
|
|
79
|
+
> `optional` **stack**: `string`
|
|
80
|
+
|
|
81
|
+
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)
|
|
82
|
+
|
|
83
|
+
***
|
|
84
|
+
|
|
85
|
+
### status
|
|
86
|
+
|
|
87
|
+
> **status**: `number`
|
|
88
|
+
|
|
89
|
+
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)
|
|
90
|
+
|
|
91
|
+
Response status code.
|
|
92
|
+
|
|
93
|
+
***
|
|
94
|
+
|
|
95
|
+
### statusText
|
|
96
|
+
|
|
97
|
+
> **statusText**: `string`
|
|
98
|
+
|
|
99
|
+
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)
|
|
100
|
+
|
|
101
|
+
Textual description of response status code, defaults to OK.
|
|
102
|
+
|
|
103
|
+
Do not depend on this.
|
|
104
|
+
|
|
105
|
+
***
|
|
106
|
+
|
|
107
|
+
### timestamp
|
|
108
|
+
|
|
109
|
+
> **timestamp**: `number`
|
|
110
|
+
|
|
111
|
+
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)
|
|
112
|
+
|
|
113
|
+
***
|
|
114
|
+
|
|
115
|
+
### type
|
|
116
|
+
|
|
117
|
+
> **type**: `ResponseHeader` \| `Response`
|
|
118
|
+
|
|
119
|
+
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)
|
|
120
|
+
|
|
121
|
+
Type of the response, narrowed to either the full response or the header.
|
|
122
|
+
|
|
123
|
+
***
|
|
124
|
+
|
|
125
|
+
### url
|
|
126
|
+
|
|
127
|
+
> **url**: `null` \| `string`
|
|
128
|
+
|
|
129
|
+
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)
|
|
130
|
+
|
|
131
|
+
URL of the resource retrieved, or null if not available.
|