attlaz-client 1.13.50 → 1.13.51
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.
|
@@ -2,6 +2,7 @@ export declare class ClientError implements Error {
|
|
|
2
2
|
code: number | null;
|
|
3
3
|
name: string;
|
|
4
4
|
message: string;
|
|
5
|
+
stack: string | undefined;
|
|
5
6
|
constructor(name: string, code?: number | null);
|
|
6
7
|
static fromError(error: Error | any): ClientError;
|
|
7
8
|
static byStatus(statusCode: number, statusText: string): ClientError | null;
|
package/dist/Http/ClientError.js
CHANGED
|
@@ -4,7 +4,7 @@ export class ClientError {
|
|
|
4
4
|
name;
|
|
5
5
|
message;
|
|
6
6
|
// description: string | null;
|
|
7
|
-
|
|
7
|
+
stack = undefined;
|
|
8
8
|
// body: string | null = null;
|
|
9
9
|
constructor(name, code = null) {
|
|
10
10
|
this.name = name;
|
|
@@ -49,7 +49,8 @@ export class ClientError {
|
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
51
|
clientError.name = error.name;
|
|
52
|
-
//
|
|
52
|
+
// TODO: only in debug mode
|
|
53
|
+
clientError.stack = error.stack;
|
|
53
54
|
return clientError;
|
|
54
55
|
}
|
|
55
56
|
static byStatus(statusCode, statusText) {
|