We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e8b569 commit 2442bd3Copy full SHA for 2442bd3
src/errors/NlicError.js
@@ -10,4 +10,23 @@ export default class NlicError extends Error {
10
this.isNlicError = true;
11
this.isAxiosError = true;
12
}
13
+
14
+ toJSON() {
15
+ return {
16
+ // Standard
17
+ message: this.message,
18
+ name: this.name,
19
+ // Microsoft
20
+ description: this.description,
21
+ number: this.number,
22
+ // Mozilla
23
+ fileName: this.fileName,
24
+ lineNumber: this.lineNumber,
25
+ columnNumber: this.columnNumber,
26
+ stack: this.stack,
27
+ // Axios
28
+ config: this.config,
29
+ code: this.code,
30
+ };
31
+ }
32
0 commit comments