@rxap/ngx-error 21.0.1 → 22.0.0-dev.0
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 +10 -0
- package/compodoc/changelog.html +9 -0
- package/compodoc/dependencies.html +10 -10
- package/compodoc/js/search/search_index.js +2 -2
- package/compodoc/properties.html +1 -1
- package/docs/documentation.json +226 -226
- package/docs/html/classes/AngularErrorComponent.html +2 -2
- package/docs/html/classes/AngularErrorService.html +2 -2
- package/docs/html/classes/AnyHttpErrorComponent.html +2 -2
- package/docs/html/classes/AnyHttpErrorService.html +2 -2
- package/docs/html/classes/CodeHttpErrorComponent.html +2 -2
- package/docs/html/classes/CodeHttpErrorService.html +2 -2
- package/docs/html/classes/ErrorCaptureDialogService.html +2 -2
- package/docs/html/classes/ErrorCaptureService.html +2 -2
- package/docs/html/classes/ErrorDialogComponent.html +2 -2
- package/docs/html/classes/MessageHttpErrorComponent.html +2 -2
- package/docs/html/classes/MessageHttpErrorService.html +2 -2
- package/docs/html/classes/OpenApiHttpResponseErrorComponent.html +2 -2
- package/docs/html/classes/OpenApiHttpResponseErrorService.html +2 -2
- package/docs/html/classes/RxapErrorHandler.html +3 -3
- package/docs/html/functions/DefaultErrorCodeExtractor.html +1 -1
- package/docs/html/functions/DefaultErrorFilter.html +1 -1
- package/docs/html/functions/ExtractContextFromError.html +1 -1
- package/docs/html/functions/ExtractError.html +1 -1
- package/docs/html/functions/ExtractExtraFromError.html +1 -1
- package/docs/html/functions/ExtractTagsFromError.html +1 -1
- package/docs/html/functions/HttpErrorInterceptor.html +1 -1
- package/docs/html/functions/PrintError.html +1 -1
- package/docs/html/functions/ProvideErrorHandler.html +2 -2
- package/docs/html/functions/SimplifyHttpErrorResponse.html +1 -1
- package/docs/html/functions/provideAutoErrorInterception.html +1 -1
- package/docs/html/functions/withErrorCaptureDialogDisabledIf.html +1 -1
- package/docs/html/functions/withErrorCaptureDialogService.html +1 -1
- package/docs/html/hierarchy.html +1 -1
- package/docs/html/index.html +2 -2
- package/docs/html/interfaces/AngularErrorDialogData.html +2 -2
- package/docs/html/interfaces/AnyHttpErrorDialogData.html +8 -8
- package/docs/html/interfaces/CodeHttpErrorDialogData.html +8 -8
- package/docs/html/interfaces/ErrorHandlerOptions.html +2 -2
- package/docs/html/interfaces/ErrorInterceptorOptions.html +2 -2
- package/docs/html/interfaces/IErrorCaptureDialogService.html +2 -2
- package/docs/html/interfaces/IErrorDialogComponent.html +2 -2
- package/docs/html/interfaces/MessageHttpErrorDialogData.html +8 -8
- package/docs/html/interfaces/OpenApiHttpResponseErrorDialogData.html +8 -8
- package/docs/html/interfaces/SimplifiedHttpErrorResponse.html +2 -2
- package/docs/html/modules.html +1 -1
- package/docs/html/variables/RXAP_ERROR_CAPTURE_DIALOG_SERVICE.html +1 -1
- package/docs/html/variables/RXAP_ERROR_DIALOG_COMPONENT.html +1 -1
- package/docs/html/variables/RXAP_ERROR_DIALOG_DATA.html +1 -1
- package/docs/html/variables/RXAP_ERROR_DIALOG_DISABLED.html +1 -1
- package/docs/html/variables/RXAP_ERROR_DIALOG_ERROR.html +1 -1
- package/docs/html/variables/RXAP_ERROR_HANDLER_OPTIONS.html +1 -1
- package/docs/html/variables/RXAP_ERROR_INTERCEPTOR_OPTIONS.html +1 -1
- package/docs/markdown/README.md +1 -1
- package/docs/markdown/classes/AngularErrorComponent.md +6 -6
- package/docs/markdown/classes/AngularErrorService.md +5 -5
- package/docs/markdown/classes/AnyHttpErrorComponent.md +4 -4
- package/docs/markdown/classes/AnyHttpErrorService.md +5 -5
- package/docs/markdown/classes/CodeHttpErrorComponent.md +5 -5
- package/docs/markdown/classes/CodeHttpErrorService.md +5 -5
- package/docs/markdown/classes/ErrorCaptureDialogService.md +6 -6
- package/docs/markdown/classes/ErrorCaptureService.md +5 -5
- package/docs/markdown/classes/ErrorDialogComponent.md +10 -10
- package/docs/markdown/classes/MessageHttpErrorComponent.md +5 -5
- package/docs/markdown/classes/MessageHttpErrorService.md +5 -5
- package/docs/markdown/classes/OpenApiHttpResponseErrorComponent.md +4 -4
- package/docs/markdown/classes/OpenApiHttpResponseErrorService.md +5 -5
- package/docs/markdown/classes/RxapErrorHandler.md +7 -7
- package/docs/markdown/functions/DefaultErrorCodeExtractor.md +2 -2
- package/docs/markdown/functions/DefaultErrorFilter.md +2 -2
- package/docs/markdown/functions/ExtractContextFromError.md +2 -2
- package/docs/markdown/functions/ExtractError.md +2 -2
- package/docs/markdown/functions/ExtractExtraFromError.md +2 -2
- package/docs/markdown/functions/ExtractTagsFromError.md +2 -2
- package/docs/markdown/functions/HttpErrorInterceptor.md +2 -2
- package/docs/markdown/functions/PrintError.md +2 -2
- package/docs/markdown/functions/ProvideErrorHandler.md +2 -2
- package/docs/markdown/functions/SimplifyHttpErrorResponse.md +2 -2
- package/docs/markdown/functions/provideAutoErrorInterception.md +2 -2
- package/docs/markdown/functions/withErrorCaptureDialogDisabledIf.md +2 -2
- package/docs/markdown/functions/withErrorCaptureDialogService.md +2 -2
- package/docs/markdown/globals.md +2 -2
- package/docs/markdown/interfaces/AngularErrorDialogData.md +8 -8
- package/docs/markdown/interfaces/AnyHttpErrorDialogData.md +15 -15
- package/docs/markdown/interfaces/CodeHttpErrorDialogData.md +16 -16
- package/docs/markdown/interfaces/ErrorHandlerOptions.md +5 -5
- package/docs/markdown/interfaces/ErrorInterceptorOptions.md +4 -4
- package/docs/markdown/interfaces/IErrorCaptureDialogService.md +3 -3
- package/docs/markdown/interfaces/IErrorDialogComponent.md +3 -3
- package/docs/markdown/interfaces/MessageHttpErrorDialogData.md +15 -15
- package/docs/markdown/interfaces/OpenApiHttpResponseErrorDialogData.md +18 -18
- package/docs/markdown/interfaces/SimplifiedHttpErrorResponse.md +12 -12
- package/docs/markdown/variables/RXAP_ERROR_CAPTURE_DIALOG_SERVICE.md +2 -2
- package/docs/markdown/variables/RXAP_ERROR_DIALOG_COMPONENT.md +2 -2
- package/docs/markdown/variables/RXAP_ERROR_DIALOG_DATA.md +2 -2
- package/docs/markdown/variables/RXAP_ERROR_DIALOG_DISABLED.md +2 -2
- package/docs/markdown/variables/RXAP_ERROR_DIALOG_ERROR.md +2 -2
- package/docs/markdown/variables/RXAP_ERROR_HANDLER_OPTIONS.md +2 -2
- package/docs/markdown/variables/RXAP_ERROR_INTERCEPTOR_OPTIONS.md +2 -2
- package/docs/wiki/Class.AngularErrorComponent.md +5 -5
- package/docs/wiki/Class.AngularErrorService.md +4 -4
- package/docs/wiki/Class.AnyHttpErrorComponent.md +3 -3
- package/docs/wiki/Class.AnyHttpErrorService.md +4 -4
- package/docs/wiki/Class.CodeHttpErrorComponent.md +4 -4
- package/docs/wiki/Class.CodeHttpErrorService.md +4 -4
- package/docs/wiki/Class.ErrorCaptureDialogService.md +5 -5
- package/docs/wiki/Class.ErrorCaptureService.md +4 -4
- package/docs/wiki/Class.ErrorDialogComponent.md +9 -9
- package/docs/wiki/Class.MessageHttpErrorComponent.md +4 -4
- package/docs/wiki/Class.MessageHttpErrorService.md +4 -4
- package/docs/wiki/Class.OpenApiHttpResponseErrorComponent.md +3 -3
- package/docs/wiki/Class.OpenApiHttpResponseErrorService.md +4 -4
- package/docs/wiki/Class.RxapErrorHandler.md +6 -6
- package/docs/wiki/Function.DefaultErrorCodeExtractor.md +1 -1
- package/docs/wiki/Function.DefaultErrorFilter.md +1 -1
- package/docs/wiki/Function.ExtractContextFromError.md +1 -1
- package/docs/wiki/Function.ExtractError.md +1 -1
- package/docs/wiki/Function.ExtractExtraFromError.md +1 -1
- package/docs/wiki/Function.ExtractTagsFromError.md +1 -1
- package/docs/wiki/Function.HttpErrorInterceptor.md +1 -1
- package/docs/wiki/Function.PrintError.md +1 -1
- package/docs/wiki/Function.ProvideErrorHandler.md +1 -1
- package/docs/wiki/Function.SimplifyHttpErrorResponse.md +1 -1
- package/docs/wiki/Function.provideAutoErrorInterception.md +1 -1
- package/docs/wiki/Function.withErrorCaptureDialogDisabledIf.md +1 -1
- package/docs/wiki/Function.withErrorCaptureDialogService.md +1 -1
- package/docs/wiki/Interface.AngularErrorDialogData.md +7 -7
- package/docs/wiki/Interface.AnyHttpErrorDialogData.md +14 -14
- package/docs/wiki/Interface.CodeHttpErrorDialogData.md +15 -15
- package/docs/wiki/Interface.ErrorHandlerOptions.md +4 -4
- package/docs/wiki/Interface.ErrorInterceptorOptions.md +3 -3
- package/docs/wiki/Interface.IErrorCaptureDialogService.md +2 -2
- package/docs/wiki/Interface.IErrorDialogComponent.md +2 -2
- package/docs/wiki/Interface.MessageHttpErrorDialogData.md +14 -14
- package/docs/wiki/Interface.OpenApiHttpResponseErrorDialogData.md +17 -17
- package/docs/wiki/Interface.SimplifiedHttpErrorResponse.md +11 -11
- package/docs/wiki/Variable.RXAP_ERROR_CAPTURE_DIALOG_SERVICE.md +1 -1
- package/docs/wiki/Variable.RXAP_ERROR_DIALOG_COMPONENT.md +1 -1
- package/docs/wiki/Variable.RXAP_ERROR_DIALOG_DATA.md +1 -1
- package/docs/wiki/Variable.RXAP_ERROR_DIALOG_DISABLED.md +1 -1
- package/docs/wiki/Variable.RXAP_ERROR_DIALOG_ERROR.md +1 -1
- package/docs/wiki/Variable.RXAP_ERROR_HANDLER_OPTIONS.md +1 -1
- package/docs/wiki/Variable.RXAP_ERROR_INTERCEPTOR_OPTIONS.md +1 -1
- package/docs/wiki/globals.md +1 -1
- package/fesm2022/rxap-ngx-error.mjs +821 -285
- package/fesm2022/rxap-ngx-error.mjs.map +1 -1
- package/package.json +31 -31
- package/types/rxap-ngx-error.d.ts +229 -251
|
@@ -1,256 +1,234 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
interface IErrorDialogComponent<Error = any> {
|
|
54
|
-
|
|
55
|
-
}
|
|
56
|
-
declare class ErrorDialogComponent {
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
declare abstract class ErrorCaptureService<Error = any> {
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
interface MessageHttpErrorDialogData extends Omit<AnyHttpErrorDialogData, 'error'> {
|
|
103
|
-
error: {
|
|
104
|
-
message: string;
|
|
105
|
-
} & Record<string, unknown>;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
declare class MessageHttpErrorComponent implements IErrorDialogComponent<MessageHttpErrorDialogData> {
|
|
109
|
-
readonly isProduction: boolean;
|
|
110
|
-
readonly error: MessageHttpErrorDialogData;
|
|
111
|
-
readonly showMore: i0.WritableSignal<boolean>;
|
|
112
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MessageHttpErrorComponent, never>;
|
|
113
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MessageHttpErrorComponent, "rxap-http-error-message", never, {}, {}, never, never, true, never>;
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
declare class MessageHttpErrorService extends AnyHttpErrorService<MessageHttpErrorDialogData> {
|
|
117
|
-
protected readonly component: typeof MessageHttpErrorComponent;
|
|
118
|
-
compare(a: MessageHttpErrorDialogData, b: MessageHttpErrorDialogData): boolean;
|
|
119
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MessageHttpErrorService, never>;
|
|
120
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<MessageHttpErrorService>;
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
interface AngularErrorDialogData {
|
|
124
|
-
name?: string;
|
|
1
|
+
/**
|
|
2
|
+
* Generated bundle index. Do not edit.
|
|
3
|
+
*/
|
|
4
|
+
import { OpenApiMetaData } from "@rxap/open-api";
|
|
5
|
+
import { HttpErrorResponse, HttpEvent, HttpEventType, HttpHandlerFn, HttpRequest } from "@angular/common/http";
|
|
6
|
+
import { ComponentPortal } from "@angular/cdk/portal";
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
import { ApplicationRef, ElementRef, EnvironmentProviders, ErrorHandler, InjectionToken, Provider, Signal, WritableSignal } from "@angular/core";
|
|
9
|
+
import { ComponentType } from "@angular/cdk/overlay";
|
|
10
|
+
import { Observable } from "rxjs";
|
|
11
|
+
import * as Sentry from "@sentry/angular";
|
|
12
|
+
import { Constructor } from "@rxap/utilities";
|
|
13
|
+
export interface AnyHttpErrorDialogData {
|
|
14
|
+
method: string;
|
|
15
|
+
body?: any;
|
|
16
|
+
stack?: string;
|
|
17
|
+
error: any | null;
|
|
18
|
+
message: string;
|
|
19
|
+
name: string;
|
|
20
|
+
timestamp: number;
|
|
21
|
+
/**
|
|
22
|
+
* All response headers.
|
|
23
|
+
*/
|
|
24
|
+
headers: Record<string, string[]>;
|
|
25
|
+
/**
|
|
26
|
+
* Response status code.
|
|
27
|
+
*/
|
|
28
|
+
status: number;
|
|
29
|
+
/**
|
|
30
|
+
* Textual description of response status code, defaults to OK.
|
|
31
|
+
*
|
|
32
|
+
* Do not depend on this.
|
|
33
|
+
*/
|
|
34
|
+
statusText: string;
|
|
35
|
+
/**
|
|
36
|
+
* URL of the resource retrieved, or null if not available.
|
|
37
|
+
*/
|
|
38
|
+
url: string | null;
|
|
39
|
+
/**
|
|
40
|
+
* Whether the status code falls in the 2xx range.
|
|
41
|
+
*/
|
|
42
|
+
ok: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* Type of the response, narrowed to either the full response or the header.
|
|
45
|
+
*/
|
|
46
|
+
type: HttpEventType.Response | HttpEventType.ResponseHeader;
|
|
47
|
+
}
|
|
48
|
+
export interface OpenApiHttpResponseErrorDialogData extends AnyHttpErrorDialogData {
|
|
49
|
+
metadata: OpenApiMetaData;
|
|
50
|
+
operationId: string;
|
|
51
|
+
serverId?: string;
|
|
52
|
+
}
|
|
53
|
+
export interface IErrorDialogComponent<Error = any> {
|
|
54
|
+
error: Error;
|
|
55
|
+
}
|
|
56
|
+
export declare class ErrorDialogComponent {
|
|
57
|
+
readonly dialog: Signal<ElementRef<HTMLDialogElement>>;
|
|
58
|
+
readonly data: Signal<any[]>;
|
|
59
|
+
readonly activeIndex: import("@angular/core").WritableSignal<number>;
|
|
60
|
+
readonly displayedButtons: Signal<number[]>;
|
|
61
|
+
readonly closeDialog: import("@angular/core").OutputEmitterRef<void>;
|
|
62
|
+
private readonly component;
|
|
63
|
+
private readonly injector;
|
|
64
|
+
readonly componentPortal: Signal<ComponentPortal<IErrorDialogComponent<any>>>;
|
|
65
|
+
constructor();
|
|
66
|
+
close(): void;
|
|
67
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ErrorDialogComponent, never>;
|
|
68
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ErrorDialogComponent, "rxap-error-dialog", never, {}, {
|
|
69
|
+
"closeDialog": "closeDialog";
|
|
70
|
+
}, never, never, true, never>;
|
|
71
|
+
}
|
|
72
|
+
export declare class OpenApiHttpResponseErrorComponent implements IErrorDialogComponent<OpenApiHttpResponseErrorDialogData> {
|
|
73
|
+
readonly isProduction: boolean;
|
|
74
|
+
readonly error: OpenApiHttpResponseErrorDialogData;
|
|
75
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OpenApiHttpResponseErrorComponent, never>;
|
|
76
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<OpenApiHttpResponseErrorComponent, "rxap-open-api-http-response-error", never, {}, {}, never, never, true, never>;
|
|
77
|
+
}
|
|
78
|
+
export declare abstract class ErrorCaptureService<Error = any> {
|
|
79
|
+
protected abstract readonly component: ComponentType<IErrorDialogComponent>;
|
|
80
|
+
private readonly errorCaptureDialogService;
|
|
81
|
+
private errorList;
|
|
82
|
+
push(error: Error): void;
|
|
83
|
+
abstract compare(a: Error, b: Error): boolean;
|
|
84
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ErrorCaptureService<any>, never>;
|
|
85
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
86
|
+
}
|
|
87
|
+
export declare class AnyHttpErrorService<Error extends AnyHttpErrorDialogData = AnyHttpErrorDialogData> extends ErrorCaptureService<Error> {
|
|
88
|
+
protected readonly component: ComponentType<IErrorDialogComponent>;
|
|
89
|
+
compare(a: Error, b: Error): boolean;
|
|
90
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AnyHttpErrorService<any>, never>;
|
|
91
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
92
|
+
}
|
|
93
|
+
export declare class OpenApiHttpResponseErrorService extends AnyHttpErrorService<OpenApiHttpResponseErrorDialogData> {
|
|
94
|
+
protected readonly component: typeof OpenApiHttpResponseErrorComponent;
|
|
95
|
+
compare(a: OpenApiHttpResponseErrorDialogData, b: OpenApiHttpResponseErrorDialogData): boolean;
|
|
96
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OpenApiHttpResponseErrorService, never>;
|
|
97
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
98
|
+
}
|
|
99
|
+
export interface MessageHttpErrorDialogData extends Omit<AnyHttpErrorDialogData, 'error'> {
|
|
100
|
+
error: {
|
|
125
101
|
message: string;
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
102
|
+
} & Record<string, unknown>;
|
|
103
|
+
}
|
|
104
|
+
export declare class MessageHttpErrorComponent implements IErrorDialogComponent<MessageHttpErrorDialogData> {
|
|
105
|
+
readonly isProduction: boolean;
|
|
106
|
+
readonly error: MessageHttpErrorDialogData;
|
|
107
|
+
readonly showMore: import("@angular/core").WritableSignal<boolean>;
|
|
108
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MessageHttpErrorComponent, never>;
|
|
109
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MessageHttpErrorComponent, "rxap-http-error-message", never, {}, {}, never, never, true, never>;
|
|
110
|
+
}
|
|
111
|
+
export declare class MessageHttpErrorService extends AnyHttpErrorService<MessageHttpErrorDialogData> {
|
|
112
|
+
protected readonly component: typeof MessageHttpErrorComponent;
|
|
113
|
+
compare(a: MessageHttpErrorDialogData, b: MessageHttpErrorDialogData): boolean;
|
|
114
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MessageHttpErrorService, never>;
|
|
115
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
116
|
+
}
|
|
117
|
+
export interface AngularErrorDialogData {
|
|
118
|
+
name?: string;
|
|
119
|
+
message: string;
|
|
120
|
+
stack?: string;
|
|
121
|
+
contexts: Record<string, Record<string, unknown>>;
|
|
122
|
+
extra: Record<string, unknown>;
|
|
123
|
+
tags: Record<string, string>;
|
|
124
|
+
}
|
|
125
|
+
export declare class AngularErrorComponent implements IErrorDialogComponent<AngularErrorDialogData> {
|
|
126
|
+
readonly error: AngularErrorDialogData;
|
|
127
|
+
get hasTags(): boolean;
|
|
128
|
+
get hasContexts(): boolean;
|
|
129
|
+
get hasExtra(): boolean;
|
|
130
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AngularErrorComponent, never>;
|
|
131
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AngularErrorComponent, "rxap-angular-error", never, {}, {}, never, never, true, never>;
|
|
132
|
+
}
|
|
133
|
+
export declare class AngularErrorService extends ErrorCaptureService<AngularErrorDialogData> {
|
|
134
|
+
protected readonly component: typeof AngularErrorComponent;
|
|
135
|
+
compare(a: AngularErrorDialogData, b: AngularErrorDialogData): boolean;
|
|
136
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AngularErrorService, never>;
|
|
137
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
138
|
+
}
|
|
139
|
+
export interface CodeHttpErrorDialogData extends Omit<AnyHttpErrorDialogData, 'error'> {
|
|
140
|
+
errorCode: string | number;
|
|
141
|
+
error: {
|
|
142
|
+
message?: string;
|
|
143
|
+
} & Record<string, unknown>;
|
|
144
|
+
}
|
|
145
|
+
export declare class CodeHttpErrorComponent implements IErrorDialogComponent<CodeHttpErrorDialogData> {
|
|
146
|
+
readonly isProduction: boolean;
|
|
147
|
+
readonly error: CodeHttpErrorDialogData;
|
|
148
|
+
readonly showMore: import("@angular/core").WritableSignal<boolean>;
|
|
149
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CodeHttpErrorComponent, never>;
|
|
150
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CodeHttpErrorComponent, "rxap-http-error-message", never, {}, {}, never, never, true, never>;
|
|
151
|
+
}
|
|
152
|
+
export declare class CodeHttpErrorService extends AnyHttpErrorService<CodeHttpErrorDialogData> {
|
|
153
|
+
protected readonly component: typeof CodeHttpErrorComponent;
|
|
154
|
+
compare(a: CodeHttpErrorDialogData, b: CodeHttpErrorDialogData): boolean;
|
|
155
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CodeHttpErrorService, never>;
|
|
156
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
157
|
+
}
|
|
158
|
+
export declare class AnyHttpErrorComponent implements IErrorDialogComponent<AnyHttpErrorDialogData> {
|
|
159
|
+
readonly isProduction: boolean;
|
|
160
|
+
readonly error: AnyHttpErrorDialogData;
|
|
161
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AnyHttpErrorComponent, never>;
|
|
162
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AnyHttpErrorComponent, "rxap-any-http-error", never, {}, {}, never, never, true, never>;
|
|
163
|
+
}
|
|
164
|
+
export interface IErrorCaptureDialogService<Error = any> {
|
|
165
|
+
open(component: ComponentType<IErrorDialogComponent>, errorList: WritableSignal<Error[]>): Observable<void>;
|
|
166
|
+
}
|
|
167
|
+
export declare class ErrorCaptureDialogService<Error = any> implements IErrorCaptureDialogService<Error> {
|
|
168
|
+
protected readonly applicationRef: ApplicationRef;
|
|
169
|
+
protected readonly document: Document;
|
|
170
|
+
protected readonly disabled: boolean;
|
|
171
|
+
open(component: ComponentType<IErrorDialogComponent>, errorList: WritableSignal<Error[]>): Observable<void>;
|
|
172
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ErrorCaptureDialogService<any>, never>;
|
|
173
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
174
|
+
}
|
|
175
|
+
export interface ErrorHandlerOptions {
|
|
176
|
+
logErrors?: boolean;
|
|
177
|
+
showDialog?: boolean;
|
|
178
|
+
sentry?: {
|
|
191
179
|
showDialog?: boolean;
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
declare function HttpErrorInterceptor(req: HttpRequest<unknown>, next: HttpHandlerFn): Observable<HttpEvent<unknown>>;
|
|
220
|
-
|
|
221
|
-
declare function provideAutoErrorInterception(...providers: Array<Provider | EnvironmentProviders>): (Provider | EnvironmentProviders)[];
|
|
222
|
-
declare function withErrorCaptureDialogService(service: Constructor<IErrorCaptureDialogService>): Provider;
|
|
223
|
-
declare function withErrorCaptureDialogDisabledIf(condition: boolean | (() => boolean)): Provider;
|
|
180
|
+
dialogOptions?: Sentry.ReportDialogOptions;
|
|
181
|
+
};
|
|
182
|
+
}
|
|
183
|
+
export declare const RXAP_ERROR_HANDLER_OPTIONS: InjectionToken<ErrorHandlerOptions>;
|
|
184
|
+
export declare class RxapErrorHandler implements ErrorHandler {
|
|
185
|
+
protected readonly options: ErrorHandlerOptions;
|
|
186
|
+
protected readonly injector: import("@angular/core").Injector;
|
|
187
|
+
private isLoadChunkError;
|
|
188
|
+
/**
|
|
189
|
+
* Method called for every value captured through the ErrorHandler
|
|
190
|
+
*/
|
|
191
|
+
handleError(errorCandidate: unknown): void;
|
|
192
|
+
protected showOpenApiHttpResponseErrorDialog(data: OpenApiHttpResponseErrorDialogData): void;
|
|
193
|
+
protected showAngularErrorDialog(data: AngularErrorDialogData): void;
|
|
194
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RxapErrorHandler, never>;
|
|
195
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
196
|
+
}
|
|
197
|
+
export declare function DefaultErrorCodeExtractor(error: HttpErrorResponse): number | string | null;
|
|
198
|
+
export declare function DefaultErrorFilter(error: HttpErrorResponse): boolean;
|
|
199
|
+
export interface ErrorInterceptorOptions {
|
|
200
|
+
extractErrorCode?: (error: HttpErrorResponse) => number | string | null;
|
|
201
|
+
filter?: Array<(error: HttpErrorResponse) => boolean>;
|
|
202
|
+
}
|
|
203
|
+
export declare function HttpErrorInterceptor(req: HttpRequest<unknown>, next: HttpHandlerFn): Observable<HttpEvent<unknown>>;
|
|
204
|
+
export declare function provideAutoErrorInterception(...providers: Array<Provider | EnvironmentProviders>): (Provider | EnvironmentProviders)[];
|
|
205
|
+
export declare function withErrorCaptureDialogService(service: Constructor<IErrorCaptureDialogService>): Provider;
|
|
206
|
+
export declare function withErrorCaptureDialogDisabledIf(condition: boolean | (() => boolean)): Provider;
|
|
224
207
|
/**
|
|
225
208
|
* @deprecated Use `provideAutoErrorInterception` instead.
|
|
226
209
|
*/
|
|
227
|
-
declare function ProvideErrorHandler(): Array<Provider | EnvironmentProviders>;
|
|
228
|
-
|
|
229
|
-
declare const
|
|
230
|
-
declare const
|
|
231
|
-
declare const
|
|
232
|
-
declare const
|
|
233
|
-
declare const
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
declare function
|
|
249
|
-
declare function
|
|
250
|
-
declare function
|
|
251
|
-
declare function
|
|
252
|
-
declare function ExtractError(error: unknown): string | HttpErrorResponse | Error;
|
|
253
|
-
declare function PrintError(errorCandidate: unknown): void;
|
|
254
|
-
|
|
255
|
-
export { AngularErrorComponent, AngularErrorService, AnyHttpErrorComponent, AnyHttpErrorService, CodeHttpErrorComponent, CodeHttpErrorService, DefaultErrorCodeExtractor, DefaultErrorFilter, ErrorCaptureDialogService, ErrorCaptureService, ErrorDialogComponent, ExtractContextFromError, ExtractError, ExtractExtraFromError, ExtractTagsFromError, HttpErrorInterceptor, MessageHttpErrorComponent, MessageHttpErrorService, OpenApiHttpResponseErrorComponent, OpenApiHttpResponseErrorService, PrintError, ProvideErrorHandler, RXAP_ERROR_CAPTURE_DIALOG_SERVICE, RXAP_ERROR_DIALOG_COMPONENT, RXAP_ERROR_DIALOG_DATA, RXAP_ERROR_DIALOG_DISABLED, RXAP_ERROR_DIALOG_ERROR, RXAP_ERROR_HANDLER_OPTIONS, RXAP_ERROR_INTERCEPTOR_OPTIONS, RxapErrorHandler, SimplifyHttpErrorResponse, provideAutoErrorInterception, withErrorCaptureDialogDisabledIf, withErrorCaptureDialogService };
|
|
256
|
-
export type { AngularErrorDialogData, AnyHttpErrorDialogData, CodeHttpErrorDialogData, ErrorHandlerOptions, ErrorInterceptorOptions, IErrorCaptureDialogService, IErrorDialogComponent, MessageHttpErrorDialogData, OpenApiHttpResponseErrorDialogData, SimplifiedHttpErrorResponse };
|
|
210
|
+
export declare function ProvideErrorHandler(): Array<Provider | EnvironmentProviders>;
|
|
211
|
+
export declare const RXAP_ERROR_DIALOG_DATA: InjectionToken<Signal<any[]>>;
|
|
212
|
+
export declare const RXAP_ERROR_DIALOG_ERROR: InjectionToken<any>;
|
|
213
|
+
export declare const RXAP_ERROR_DIALOG_COMPONENT: InjectionToken<ComponentType<IErrorDialogComponent<any>>>;
|
|
214
|
+
export declare const RXAP_ERROR_INTERCEPTOR_OPTIONS: InjectionToken<ErrorInterceptorOptions>;
|
|
215
|
+
export declare const RXAP_ERROR_CAPTURE_DIALOG_SERVICE: InjectionToken<IErrorCaptureDialogService<any>>;
|
|
216
|
+
export declare const RXAP_ERROR_DIALOG_DISABLED: InjectionToken<boolean>;
|
|
217
|
+
export interface SimplifiedHttpErrorResponse extends Record<string, unknown> {
|
|
218
|
+
url: string | null;
|
|
219
|
+
message: string;
|
|
220
|
+
name: string;
|
|
221
|
+
status: number;
|
|
222
|
+
statusText: string;
|
|
223
|
+
headers: Record<string, string[]>;
|
|
224
|
+
error: any;
|
|
225
|
+
errorMessage: string;
|
|
226
|
+
ok: boolean;
|
|
227
|
+
type: HttpEventType.Response | HttpEventType.ResponseHeader;
|
|
228
|
+
}
|
|
229
|
+
export declare function SimplifyHttpErrorResponse(event: HttpErrorResponse): SimplifiedHttpErrorResponse;
|
|
230
|
+
export declare function ExtractContextFromError(error: unknown): Record<string, Record<string, unknown>>;
|
|
231
|
+
export declare function ExtractExtraFromError(error: unknown): {};
|
|
232
|
+
export declare function ExtractTagsFromError(error: unknown): {};
|
|
233
|
+
export declare function ExtractError(error: unknown): string | Error | HttpErrorResponse;
|
|
234
|
+
export declare function PrintError(errorCandidate: unknown): void;
|