opticore-catch-exception-error 1.0.20 → 1.0.22
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/dist/index.cjs +915 -578
- package/dist/index.d.cts +337 -28
- package/dist/index.d.ts +337 -28
- package/dist/index.js +848 -511
- package/package.json +7 -5
package/dist/index.js
CHANGED
|
@@ -71,9 +71,10 @@ var CEventNameError = {
|
|
|
71
71
|
import process from "process";
|
|
72
72
|
import colors from "ansi-colors";
|
|
73
73
|
import chalk from "chalk";
|
|
74
|
-
import { LoggerCore } from "opticore-logger";
|
|
74
|
+
import { LoggerCore as LoggerCore2 } from "opticore-logger";
|
|
75
75
|
import { HttpStatusCode as status } from "opticore-http-response";
|
|
76
76
|
import { TranslationLoader as TranslationLoader2 } from "opticore-translator";
|
|
77
|
+
import { serverLogger } from "opticore-server-logger";
|
|
77
78
|
|
|
78
79
|
// src/core/errors/base/stackTraceError.ts
|
|
79
80
|
var StackTraceError = class extends Error {
|
|
@@ -98,27 +99,41 @@ var StackTraceError = class extends Error {
|
|
|
98
99
|
};
|
|
99
100
|
|
|
100
101
|
// src/utils/dateTimeFormatted.utils.ts
|
|
101
|
-
var dateTimeFormatted =
|
|
102
|
+
var dateTimeFormatted = (/* @__PURE__ */ new Date()).toString();
|
|
102
103
|
|
|
103
104
|
// src/core/config/loaders/translateLanguage.loader.ts
|
|
104
105
|
import path from "path";
|
|
105
106
|
import { createRequire } from "module";
|
|
106
107
|
import { TranslationLoader } from "opticore-translator";
|
|
108
|
+
import { LoggerCore } from "opticore-logger";
|
|
109
|
+
import { HttpStatusCode } from "opticore-http-response";
|
|
107
110
|
var translateCatchExceptionErrorLanguageLoader = () => {
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
111
|
+
try {
|
|
112
|
+
const require2 = createRequire(import.meta.url);
|
|
113
|
+
const packagePath = path.dirname(require2.resolve("opticore-catch-exception-error"));
|
|
114
|
+
const translateMsgJsonFilePath = path.join(packagePath, "utils", "translations");
|
|
115
|
+
TranslationLoader.loadTranslations(translateMsgJsonFilePath);
|
|
116
|
+
} catch (err) {
|
|
117
|
+
new LoggerCore().error({
|
|
118
|
+
message: err.message,
|
|
119
|
+
title: "Translation Loader",
|
|
120
|
+
errorType: "No translations loading",
|
|
121
|
+
stackTrace: void 0,
|
|
122
|
+
httpCodeValue: HttpStatusCode.INTERNAL_SERVER_ERROR
|
|
123
|
+
});
|
|
124
|
+
}
|
|
112
125
|
};
|
|
113
126
|
|
|
114
127
|
// src/core/errors/events/serverListen.event.error.ts
|
|
115
128
|
var ServerListenEventError = class {
|
|
116
|
-
logger = new
|
|
129
|
+
logger = new LoggerCore2();
|
|
117
130
|
stackTrace;
|
|
118
131
|
localeLanguage;
|
|
132
|
+
serverLogger;
|
|
119
133
|
constructor(defaultLocalLang) {
|
|
120
|
-
this.localeLanguage = defaultLocalLang;
|
|
121
134
|
translateCatchExceptionErrorLanguageLoader();
|
|
135
|
+
this.localeLanguage = defaultLocalLang;
|
|
136
|
+
this.serverLogger = new serverLogger();
|
|
122
137
|
}
|
|
123
138
|
/**
|
|
124
139
|
* @param appPort
|
|
@@ -130,13 +145,13 @@ var ServerListenEventError = class {
|
|
|
130
145
|
TranslationLoader2.t("listening", this.localeLanguage),
|
|
131
146
|
status.BAD_REQUEST
|
|
132
147
|
);
|
|
133
|
-
this.logger.error(
|
|
134
|
-
this.stackTrace.message,
|
|
135
|
-
TranslationLoader2.t("webServer", this.localeLanguage),
|
|
136
|
-
TranslationLoader2.t("badPort", this.localeLanguage, { badPort: appPort }),
|
|
137
|
-
this.stackTrace.stack,
|
|
138
|
-
status.BAD_REQUEST
|
|
139
|
-
);
|
|
148
|
+
this.logger.error({
|
|
149
|
+
message: this.stackTrace.message,
|
|
150
|
+
title: TranslationLoader2.t("webServer", this.localeLanguage),
|
|
151
|
+
errorType: TranslationLoader2.t("badPort", this.localeLanguage, { badPort: appPort }),
|
|
152
|
+
stackTrace: this.stackTrace.stack,
|
|
153
|
+
httpCodeValue: status.BAD_REQUEST
|
|
154
|
+
});
|
|
140
155
|
process.exit();
|
|
141
156
|
}
|
|
142
157
|
/**
|
|
@@ -149,13 +164,13 @@ var ServerListenEventError = class {
|
|
|
149
164
|
TranslationLoader2.t("listening", this.localeLanguage),
|
|
150
165
|
status.BAD_REQUEST
|
|
151
166
|
);
|
|
152
|
-
this.logger.error(
|
|
153
|
-
this.stackTrace.message,
|
|
154
|
-
TranslationLoader2.t("webServer", this.localeLanguage),
|
|
155
|
-
TranslationLoader2.t("badHost", this.localeLanguage),
|
|
156
|
-
this.stackTrace.stack,
|
|
157
|
-
status.BAD_REQUEST
|
|
158
|
-
);
|
|
167
|
+
this.logger.error({
|
|
168
|
+
message: this.stackTrace.message,
|
|
169
|
+
title: TranslationLoader2.t("webServer", this.localeLanguage),
|
|
170
|
+
errorType: TranslationLoader2.t("badHost", this.localeLanguage),
|
|
171
|
+
stackTrace: this.stackTrace.stack,
|
|
172
|
+
httpCodeValue: status.BAD_REQUEST
|
|
173
|
+
});
|
|
159
174
|
process.exit();
|
|
160
175
|
}
|
|
161
176
|
/**
|
|
@@ -167,13 +182,13 @@ var ServerListenEventError = class {
|
|
|
167
182
|
TranslationLoader2.t("listening", this.localeLanguage),
|
|
168
183
|
status.BAD_REQUEST
|
|
169
184
|
);
|
|
170
|
-
this.logger.error(
|
|
171
|
-
this.stackTrace.message,
|
|
172
|
-
TranslationLoader2.t("webServer", this.localeLanguage),
|
|
173
|
-
TranslationLoader2.t("badPort", this.localeLanguage),
|
|
174
|
-
this.stackTrace.stack,
|
|
175
|
-
status.BAD_REQUEST
|
|
176
|
-
);
|
|
185
|
+
this.logger.error({
|
|
186
|
+
message: this.stackTrace.message,
|
|
187
|
+
title: TranslationLoader2.t("webServer", this.localeLanguage),
|
|
188
|
+
errorType: TranslationLoader2.t("badPort", this.localeLanguage),
|
|
189
|
+
stackTrace: this.stackTrace.stack,
|
|
190
|
+
httpCodeValue: status.BAD_REQUEST
|
|
191
|
+
});
|
|
177
192
|
process.exit();
|
|
178
193
|
}
|
|
179
194
|
/**
|
|
@@ -181,13 +196,13 @@ var ServerListenEventError = class {
|
|
|
181
196
|
*
|
|
182
197
|
*/
|
|
183
198
|
onEventError(err) {
|
|
184
|
-
this.logger.error(
|
|
185
|
-
TranslationLoader2.t(err.message, this.localeLanguage),
|
|
186
|
-
TranslationLoader2.t("serverStart", this.localeLanguage),
|
|
187
|
-
TranslationLoader2.t("serverStartError", this.localeLanguage, { err }),
|
|
188
|
-
err.stack,
|
|
189
|
-
status.SERVICE_UNAVAILABLE
|
|
190
|
-
);
|
|
199
|
+
this.logger.error({
|
|
200
|
+
message: TranslationLoader2.t(err.message, this.localeLanguage),
|
|
201
|
+
title: TranslationLoader2.t("serverStart", this.localeLanguage),
|
|
202
|
+
errorType: TranslationLoader2.t("serverStartError", this.localeLanguage, { err }),
|
|
203
|
+
stackTrace: err.stack,
|
|
204
|
+
httpCodeValue: status.SERVICE_UNAVAILABLE
|
|
205
|
+
});
|
|
191
206
|
}
|
|
192
207
|
/**
|
|
193
208
|
*
|
|
@@ -199,13 +214,13 @@ var ServerListenEventError = class {
|
|
|
199
214
|
error.name,
|
|
200
215
|
status.BAD_REQUEST
|
|
201
216
|
);
|
|
202
|
-
this.logger.error(
|
|
203
|
-
this.stackTrace.message,
|
|
204
|
-
"Event error",
|
|
205
|
-
"Error",
|
|
206
|
-
error.stack,
|
|
207
|
-
status.BAD_REQUEST
|
|
208
|
-
);
|
|
217
|
+
this.logger.error({
|
|
218
|
+
message: this.stackTrace.message,
|
|
219
|
+
title: "Event error",
|
|
220
|
+
errorType: "Error",
|
|
221
|
+
stackTrace: error.stack,
|
|
222
|
+
httpCodeValue: status.BAD_REQUEST
|
|
223
|
+
});
|
|
209
224
|
}
|
|
210
225
|
/**
|
|
211
226
|
* @param code
|
|
@@ -217,13 +232,13 @@ var ServerListenEventError = class {
|
|
|
217
232
|
TranslationLoader2.t("beforeExit", this.localeLanguage),
|
|
218
233
|
status.SERVICE_UNAVAILABLE
|
|
219
234
|
);
|
|
220
|
-
this.logger.error(
|
|
221
|
-
this.stackTrace.message,
|
|
222
|
-
TranslationLoader2.t("beforeExit", this.localeLanguage),
|
|
223
|
-
TranslationLoader2.t("processBeforeExit", this.localeLanguage),
|
|
224
|
-
this.stackTrace.stack,
|
|
225
|
-
status.SERVICE_UNAVAILABLE
|
|
226
|
-
);
|
|
235
|
+
this.logger.error({
|
|
236
|
+
message: this.stackTrace.message,
|
|
237
|
+
title: TranslationLoader2.t("beforeExit", this.localeLanguage),
|
|
238
|
+
errorType: TranslationLoader2.t("processBeforeExit", this.localeLanguage),
|
|
239
|
+
stackTrace: this.stackTrace.stack,
|
|
240
|
+
httpCodeValue: status.SERVICE_UNAVAILABLE
|
|
241
|
+
});
|
|
227
242
|
process.exit(code);
|
|
228
243
|
}
|
|
229
244
|
/**
|
|
@@ -235,13 +250,13 @@ var ServerListenEventError = class {
|
|
|
235
250
|
TranslationLoader2.t("processDiscon", this.localeLanguage),
|
|
236
251
|
status.SERVICE_UNAVAILABLE
|
|
237
252
|
);
|
|
238
|
-
this.logger.error(
|
|
239
|
-
this.stackTrace.message,
|
|
240
|
-
TranslationLoader2.t("disconnected", this.localeLanguage),
|
|
241
|
-
TranslationLoader2.t("processDiscon", this.localeLanguage),
|
|
242
|
-
this.stackTrace.stack,
|
|
243
|
-
status.SERVICE_UNAVAILABLE
|
|
244
|
-
);
|
|
253
|
+
this.logger.error({
|
|
254
|
+
message: this.stackTrace.message,
|
|
255
|
+
title: TranslationLoader2.t("disconnected", this.localeLanguage),
|
|
256
|
+
errorType: TranslationLoader2.t("processDiscon", this.localeLanguage),
|
|
257
|
+
stackTrace: this.stackTrace.stack,
|
|
258
|
+
httpCodeValue: status.SERVICE_UNAVAILABLE
|
|
259
|
+
});
|
|
245
260
|
process.exit();
|
|
246
261
|
}
|
|
247
262
|
/**
|
|
@@ -251,10 +266,10 @@ var ServerListenEventError = class {
|
|
|
251
266
|
exited(code) {
|
|
252
267
|
switch (code) {
|
|
253
268
|
case 0:
|
|
254
|
-
this.logger.success(
|
|
255
|
-
TranslationLoader2.t("completed", this.localeLanguage, { code }),
|
|
256
|
-
TranslationLoader2.t("finishingProcessWell", this.localeLanguage, { code })
|
|
257
|
-
);
|
|
269
|
+
this.logger.success({
|
|
270
|
+
title: TranslationLoader2.t("completed", this.localeLanguage, { code }),
|
|
271
|
+
message: TranslationLoader2.t("finishingProcessWell", this.localeLanguage, { code })
|
|
272
|
+
});
|
|
258
273
|
console.log("");
|
|
259
274
|
const paddingLength = 35;
|
|
260
275
|
const msg0 = " ".padEnd(paddingLength, " ");
|
|
@@ -268,13 +283,13 @@ var ServerListenEventError = class {
|
|
|
268
283
|
TranslationLoader2.t("genErrors", this.localeLanguage),
|
|
269
284
|
status.SERVICE_UNAVAILABLE
|
|
270
285
|
);
|
|
271
|
-
this.logger.error(
|
|
272
|
-
this.stackTrace.message,
|
|
273
|
-
TranslationLoader2.t("exited", this.localeLanguage),
|
|
274
|
-
"General Errors",
|
|
275
|
-
this.stackTrace.stack,
|
|
276
|
-
status.SERVICE_UNAVAILABLE
|
|
277
|
-
);
|
|
286
|
+
this.logger.error({
|
|
287
|
+
message: this.stackTrace.message,
|
|
288
|
+
title: TranslationLoader2.t("exited", this.localeLanguage),
|
|
289
|
+
errorType: "General Errors",
|
|
290
|
+
stackTrace: this.stackTrace.stack,
|
|
291
|
+
httpCodeValue: status.SERVICE_UNAVAILABLE
|
|
292
|
+
});
|
|
278
293
|
break;
|
|
279
294
|
case 2:
|
|
280
295
|
this.stackTrace = this.traceError(
|
|
@@ -282,13 +297,13 @@ var ServerListenEventError = class {
|
|
|
282
297
|
TranslationLoader2.t("misuseShell", this.localeLanguage),
|
|
283
298
|
status.SERVICE_UNAVAILABLE
|
|
284
299
|
);
|
|
285
|
-
this.logger.error(
|
|
286
|
-
this.stackTrace.message,
|
|
287
|
-
TranslationLoader2.t("exited", this.localeLanguage),
|
|
288
|
-
TranslationLoader2.t("incorrectCmd", this.localeLanguage),
|
|
289
|
-
this.stackTrace.stack,
|
|
290
|
-
status.SERVICE_UNAVAILABLE
|
|
291
|
-
);
|
|
300
|
+
this.logger.error({
|
|
301
|
+
message: this.stackTrace.message,
|
|
302
|
+
title: TranslationLoader2.t("exited", this.localeLanguage),
|
|
303
|
+
errorType: TranslationLoader2.t("incorrectCmd", this.localeLanguage),
|
|
304
|
+
stackTrace: this.stackTrace.stack,
|
|
305
|
+
httpCodeValue: status.SERVICE_UNAVAILABLE
|
|
306
|
+
});
|
|
292
307
|
break;
|
|
293
308
|
case 126:
|
|
294
309
|
this.stackTrace = this.traceError(
|
|
@@ -296,13 +311,13 @@ var ServerListenEventError = class {
|
|
|
296
311
|
TranslationLoader2.t("cmdNotExecutable", this.localeLanguage),
|
|
297
312
|
status.SERVICE_UNAVAILABLE
|
|
298
313
|
);
|
|
299
|
-
this.logger.error(
|
|
300
|
-
this.stackTrace.message,
|
|
301
|
-
TranslationLoader2.t("exited", this.localeLanguage),
|
|
302
|
-
this.stackTrace.name,
|
|
303
|
-
this.stackTrace.stack,
|
|
304
|
-
status.SERVICE_UNAVAILABLE
|
|
305
|
-
);
|
|
314
|
+
this.logger.error({
|
|
315
|
+
message: this.stackTrace.message,
|
|
316
|
+
title: TranslationLoader2.t("exited", this.localeLanguage),
|
|
317
|
+
errorType: this.stackTrace.name,
|
|
318
|
+
stackTrace: this.stackTrace.stack,
|
|
319
|
+
httpCodeValue: status.SERVICE_UNAVAILABLE
|
|
320
|
+
});
|
|
306
321
|
break;
|
|
307
322
|
case 127:
|
|
308
323
|
this.stackTrace = this.traceError(
|
|
@@ -310,13 +325,13 @@ var ServerListenEventError = class {
|
|
|
310
325
|
TranslationLoader2.t("cmdNotFoundInSystemPath", this.localeLanguage),
|
|
311
326
|
status.SERVICE_UNAVAILABLE
|
|
312
327
|
);
|
|
313
|
-
this.logger.error(
|
|
314
|
-
this.stackTrace.message,
|
|
315
|
-
TranslationLoader2.t("exited", this.localeLanguage),
|
|
316
|
-
this.stackTrace.name,
|
|
317
|
-
this.stackTrace.stack,
|
|
318
|
-
status.SERVICE_UNAVAILABLE
|
|
319
|
-
);
|
|
328
|
+
this.logger.error({
|
|
329
|
+
message: this.stackTrace.message,
|
|
330
|
+
title: TranslationLoader2.t("exited", this.localeLanguage),
|
|
331
|
+
errorType: this.stackTrace.name,
|
|
332
|
+
stackTrace: this.stackTrace.stack,
|
|
333
|
+
httpCodeValue: status.SERVICE_UNAVAILABLE
|
|
334
|
+
});
|
|
320
335
|
break;
|
|
321
336
|
case 128:
|
|
322
337
|
this.stackTrace = this.traceError(
|
|
@@ -324,13 +339,13 @@ var ServerListenEventError = class {
|
|
|
324
339
|
TranslationLoader2.t("argInvalid", this.localeLanguage),
|
|
325
340
|
status.SERVICE_UNAVAILABLE
|
|
326
341
|
);
|
|
327
|
-
this.logger.error(
|
|
328
|
-
this.stackTrace.message,
|
|
329
|
-
TranslationLoader2.t("exited", this.localeLanguage),
|
|
330
|
-
this.stackTrace.name,
|
|
331
|
-
this.stackTrace.stack,
|
|
332
|
-
status.SERVICE_UNAVAILABLE
|
|
333
|
-
);
|
|
342
|
+
this.logger.error({
|
|
343
|
+
message: this.stackTrace.message,
|
|
344
|
+
title: TranslationLoader2.t("exited", this.localeLanguage),
|
|
345
|
+
errorType: this.stackTrace.name,
|
|
346
|
+
stackTrace: this.stackTrace.stack,
|
|
347
|
+
httpCodeValue: status.SERVICE_UNAVAILABLE
|
|
348
|
+
});
|
|
334
349
|
break;
|
|
335
350
|
case 130:
|
|
336
351
|
this.stackTrace = this.traceError(
|
|
@@ -338,13 +353,13 @@ var ServerListenEventError = class {
|
|
|
338
353
|
TranslationLoader2.t("scriptEnded", this.localeLanguage),
|
|
339
354
|
status.SERVICE_UNAVAILABLE
|
|
340
355
|
);
|
|
341
|
-
this.logger.error(
|
|
342
|
-
this.stackTrace.message,
|
|
343
|
-
TranslationLoader2.t("exited", this.localeLanguage),
|
|
344
|
-
this.stackTrace.name,
|
|
345
|
-
this.stackTrace.stack,
|
|
346
|
-
status.SERVICE_UNAVAILABLE
|
|
347
|
-
);
|
|
356
|
+
this.logger.error({
|
|
357
|
+
message: this.stackTrace.message,
|
|
358
|
+
title: TranslationLoader2.t("exited", this.localeLanguage),
|
|
359
|
+
errorType: this.stackTrace.name,
|
|
360
|
+
stackTrace: this.stackTrace.stack,
|
|
361
|
+
httpCodeValue: status.SERVICE_UNAVAILABLE
|
|
362
|
+
});
|
|
348
363
|
break;
|
|
349
364
|
case 137:
|
|
350
365
|
this.stackTrace = this.traceError(
|
|
@@ -352,13 +367,13 @@ var ServerListenEventError = class {
|
|
|
352
367
|
"SIGKILL",
|
|
353
368
|
status.SERVICE_UNAVAILABLE
|
|
354
369
|
);
|
|
355
|
-
this.logger.error(
|
|
356
|
-
this.stackTrace.message,
|
|
357
|
-
TranslationLoader2.t("exited", this.localeLanguage),
|
|
358
|
-
this.stackTrace.name,
|
|
359
|
-
this.stackTrace.stack,
|
|
360
|
-
status.SERVICE_UNAVAILABLE
|
|
361
|
-
);
|
|
370
|
+
this.logger.error({
|
|
371
|
+
message: this.stackTrace.message,
|
|
372
|
+
title: TranslationLoader2.t("exited", this.localeLanguage),
|
|
373
|
+
errorType: this.stackTrace.name,
|
|
374
|
+
stackTrace: this.stackTrace.stack,
|
|
375
|
+
httpCodeValue: status.SERVICE_UNAVAILABLE
|
|
376
|
+
});
|
|
362
377
|
break;
|
|
363
378
|
case 139:
|
|
364
379
|
this.stackTrace = this.traceError(
|
|
@@ -366,13 +381,13 @@ var ServerListenEventError = class {
|
|
|
366
381
|
TranslationLoader2.t("defaultSegment", this.localeLanguage),
|
|
367
382
|
status.SERVICE_UNAVAILABLE
|
|
368
383
|
);
|
|
369
|
-
this.logger.error(
|
|
370
|
-
this.stackTrace.message,
|
|
371
|
-
TranslationLoader2.t("exited", this.localeLanguage),
|
|
372
|
-
this.stackTrace.name,
|
|
373
|
-
this.stackTrace.stack,
|
|
374
|
-
status.SERVICE_UNAVAILABLE
|
|
375
|
-
);
|
|
384
|
+
this.logger.error({
|
|
385
|
+
message: this.stackTrace.message,
|
|
386
|
+
title: TranslationLoader2.t("exited", this.localeLanguage),
|
|
387
|
+
errorType: this.stackTrace.name,
|
|
388
|
+
stackTrace: this.stackTrace.stack,
|
|
389
|
+
httpCodeValue: status.SERVICE_UNAVAILABLE
|
|
390
|
+
});
|
|
376
391
|
break;
|
|
377
392
|
case 143:
|
|
378
393
|
this.stackTrace = this.traceError(
|
|
@@ -380,13 +395,13 @@ var ServerListenEventError = class {
|
|
|
380
395
|
TranslationLoader2.t("processReceived", this.localeLanguage),
|
|
381
396
|
status.SERVICE_UNAVAILABLE
|
|
382
397
|
);
|
|
383
|
-
this.logger.error(
|
|
384
|
-
this.stackTrace.message,
|
|
385
|
-
TranslationLoader2.t("exited", this.localeLanguage),
|
|
386
|
-
this.stackTrace.name,
|
|
387
|
-
this.stackTrace.stack,
|
|
388
|
-
status.SERVICE_UNAVAILABLE
|
|
389
|
-
);
|
|
398
|
+
this.logger.error({
|
|
399
|
+
message: this.stackTrace.message,
|
|
400
|
+
title: TranslationLoader2.t("exited", this.localeLanguage),
|
|
401
|
+
errorType: this.stackTrace.name,
|
|
402
|
+
stackTrace: this.stackTrace.stack,
|
|
403
|
+
httpCodeValue: status.SERVICE_UNAVAILABLE
|
|
404
|
+
});
|
|
390
405
|
break;
|
|
391
406
|
case 255:
|
|
392
407
|
this.stackTrace = this.traceError(
|
|
@@ -394,13 +409,13 @@ var ServerListenEventError = class {
|
|
|
394
409
|
TranslationLoader2.t("outRange", this.localeLanguage),
|
|
395
410
|
status.SERVICE_UNAVAILABLE
|
|
396
411
|
);
|
|
397
|
-
this.logger.error(
|
|
398
|
-
this.stackTrace.message,
|
|
399
|
-
TranslationLoader2.t("exited", this.localeLanguage),
|
|
400
|
-
this.stackTrace.name,
|
|
401
|
-
this.stackTrace.stack,
|
|
402
|
-
status.SERVICE_UNAVAILABLE
|
|
403
|
-
);
|
|
412
|
+
this.logger.error({
|
|
413
|
+
message: this.stackTrace.message,
|
|
414
|
+
title: TranslationLoader2.t("exited", this.localeLanguage),
|
|
415
|
+
errorType: this.stackTrace.name,
|
|
416
|
+
stackTrace: this.stackTrace.stack,
|
|
417
|
+
httpCodeValue: status.SERVICE_UNAVAILABLE
|
|
418
|
+
});
|
|
404
419
|
break;
|
|
405
420
|
default:
|
|
406
421
|
this.stackTrace = this.traceError(
|
|
@@ -408,13 +423,13 @@ var ServerListenEventError = class {
|
|
|
408
423
|
TranslationLoader2.t("errors", this.localeLanguage),
|
|
409
424
|
status.SERVICE_UNAVAILABLE
|
|
410
425
|
);
|
|
411
|
-
this.logger.error(
|
|
412
|
-
this.stackTrace.message,
|
|
413
|
-
TranslationLoader2.t("exited", this.localeLanguage),
|
|
414
|
-
this.stackTrace.name,
|
|
415
|
-
this.stackTrace.stack,
|
|
416
|
-
status.SERVICE_UNAVAILABLE
|
|
417
|
-
);
|
|
426
|
+
this.logger.error({
|
|
427
|
+
message: this.stackTrace.message,
|
|
428
|
+
title: TranslationLoader2.t("exited", this.localeLanguage),
|
|
429
|
+
errorType: this.stackTrace.name,
|
|
430
|
+
stackTrace: this.stackTrace.stack,
|
|
431
|
+
httpCodeValue: status.SERVICE_UNAVAILABLE
|
|
432
|
+
});
|
|
418
433
|
break;
|
|
419
434
|
}
|
|
420
435
|
}
|
|
@@ -428,13 +443,13 @@ var ServerListenEventError = class {
|
|
|
428
443
|
TranslationLoader2.t("rejectionPromise", this.localeLanguage, { promise }),
|
|
429
444
|
status.SERVICE_UNAVAILABLE
|
|
430
445
|
);
|
|
431
|
-
this.logger.error(
|
|
432
|
-
this.stackTrace.message,
|
|
433
|
-
"PromiseRejectionHandled",
|
|
434
|
-
this.stackTrace.name,
|
|
435
|
-
promise,
|
|
436
|
-
status.SERVICE_UNAVAILABLE
|
|
437
|
-
);
|
|
446
|
+
this.logger.error({
|
|
447
|
+
message: this.stackTrace.message,
|
|
448
|
+
title: "PromiseRejectionHandled",
|
|
449
|
+
errorType: this.stackTrace.name,
|
|
450
|
+
stackTrace: promise,
|
|
451
|
+
httpCodeValue: status.SERVICE_UNAVAILABLE
|
|
452
|
+
});
|
|
438
453
|
}
|
|
439
454
|
/**
|
|
440
455
|
*
|
|
@@ -449,13 +464,13 @@ var ServerListenEventError = class {
|
|
|
449
464
|
TranslationLoader2.t("uncaughtExceptionHandled", this.localeLanguage),
|
|
450
465
|
status.SERVICE_UNAVAILABLE
|
|
451
466
|
);
|
|
452
|
-
this.logger.error(
|
|
453
|
-
this.stackTrace.message,
|
|
454
|
-
"UncaughtException",
|
|
455
|
-
this.stackTrace.name,
|
|
456
|
-
error.stack,
|
|
457
|
-
status.SERVICE_UNAVAILABLE
|
|
458
|
-
);
|
|
467
|
+
this.logger.error({
|
|
468
|
+
message: this.stackTrace.message,
|
|
469
|
+
title: "UncaughtException",
|
|
470
|
+
errorType: this.stackTrace.name,
|
|
471
|
+
stackTrace: error.stack,
|
|
472
|
+
httpCodeValue: status.SERVICE_UNAVAILABLE
|
|
473
|
+
});
|
|
459
474
|
}
|
|
460
475
|
}
|
|
461
476
|
/**
|
|
@@ -478,31 +493,27 @@ var ServerListenEventError = class {
|
|
|
478
493
|
TranslationLoader2.t("unhandledRejection", this.localeLanguage, { promise, reason }),
|
|
479
494
|
status.SERVICE_UNAVAILABLE
|
|
480
495
|
);
|
|
481
|
-
this.logger.error(
|
|
482
|
-
this.stackTrace.message,
|
|
483
|
-
"UnhandledRejection",
|
|
484
|
-
this.stackTrace.name,
|
|
485
|
-
`reason: ${reason} - promise: ${promise}`,
|
|
486
|
-
status.SERVICE_UNAVAILABLE
|
|
487
|
-
);
|
|
496
|
+
this.logger.error({
|
|
497
|
+
message: this.stackTrace.message,
|
|
498
|
+
title: "UnhandledRejection",
|
|
499
|
+
errorType: this.stackTrace.name,
|
|
500
|
+
stackTrace: `reason: ${reason} - promise: ${promise}`,
|
|
501
|
+
httpCodeValue: status.SERVICE_UNAVAILABLE
|
|
502
|
+
});
|
|
488
503
|
}
|
|
489
504
|
/**
|
|
490
505
|
*
|
|
491
506
|
* @param warning
|
|
492
507
|
*/
|
|
493
508
|
warning(warning) {
|
|
494
|
-
this.stackTrace = this.traceError(
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
this.stackTrace.name,
|
|
503
|
-
`warning: ${warning}`,
|
|
504
|
-
status.SERVICE_UNAVAILABLE
|
|
505
|
-
);
|
|
509
|
+
this.stackTrace = this.traceError(TranslationLoader2.t(warning.message, this.localeLanguage), "warning", status.SERVICE_UNAVAILABLE);
|
|
510
|
+
this.logger.error({
|
|
511
|
+
message: this.stackTrace.message,
|
|
512
|
+
title: TranslationLoader2.t("warning", this.localeLanguage, { warning }),
|
|
513
|
+
errorType: this.stackTrace.name,
|
|
514
|
+
stackTrace: `warning: ${warning}`,
|
|
515
|
+
httpCodeValue: status.SERVICE_UNAVAILABLE
|
|
516
|
+
});
|
|
506
517
|
}
|
|
507
518
|
/**
|
|
508
519
|
*
|
|
@@ -514,13 +525,13 @@ var ServerListenEventError = class {
|
|
|
514
525
|
TranslationLoader2.t("msgException", this.localeLanguage, { message }),
|
|
515
526
|
status.SERVICE_UNAVAILABLE
|
|
516
527
|
);
|
|
517
|
-
this.logger.error(
|
|
518
|
-
this.stackTrace.message,
|
|
519
|
-
"Message",
|
|
520
|
-
this.stackTrace.name,
|
|
521
|
-
`message: ${message}`,
|
|
522
|
-
status.SERVICE_UNAVAILABLE
|
|
523
|
-
);
|
|
528
|
+
this.logger.error({
|
|
529
|
+
message: this.stackTrace.message,
|
|
530
|
+
title: "Message",
|
|
531
|
+
errorType: this.stackTrace.name,
|
|
532
|
+
stackTrace: `message: ${message}`,
|
|
533
|
+
httpCodeValue: status.SERVICE_UNAVAILABLE
|
|
534
|
+
});
|
|
524
535
|
}
|
|
525
536
|
/**
|
|
526
537
|
*
|
|
@@ -534,22 +545,22 @@ var ServerListenEventError = class {
|
|
|
534
545
|
TranslationLoader2.t("multipleResolvesDetected", this.localeLanguage, { type, promise, reason }),
|
|
535
546
|
status.SERVICE_UNAVAILABLE
|
|
536
547
|
);
|
|
537
|
-
this.logger.error(
|
|
538
|
-
this.stackTrace.message,
|
|
539
|
-
"multipleResolves",
|
|
540
|
-
this.stackTrace.name,
|
|
541
|
-
`type: ${type}, promise: ${promise}, reason: ${reason}`,
|
|
542
|
-
status.SERVICE_UNAVAILABLE
|
|
543
|
-
);
|
|
548
|
+
this.logger.error({
|
|
549
|
+
message: this.stackTrace.message,
|
|
550
|
+
title: "multipleResolves",
|
|
551
|
+
errorType: this.stackTrace.name,
|
|
552
|
+
stackTrace: `type: ${type}, promise: ${promise}, reason: ${reason}`,
|
|
553
|
+
httpCodeValue: status.SERVICE_UNAVAILABLE
|
|
554
|
+
});
|
|
544
555
|
}
|
|
545
556
|
/**
|
|
546
557
|
*
|
|
547
558
|
*/
|
|
548
559
|
processInterrupted() {
|
|
549
|
-
this.logger.success(
|
|
550
|
-
TranslationLoader2.t("okSuccess", this.localeLanguage),
|
|
551
|
-
TranslationLoader2.t("serverWebStopped", this.localeLanguage)
|
|
552
|
-
);
|
|
560
|
+
this.logger.success({
|
|
561
|
+
title: TranslationLoader2.t("okSuccess", this.localeLanguage),
|
|
562
|
+
message: TranslationLoader2.t("serverWebStopped", this.localeLanguage)
|
|
563
|
+
});
|
|
553
564
|
process.exit(0);
|
|
554
565
|
}
|
|
555
566
|
/**
|
|
@@ -562,28 +573,46 @@ var ServerListenEventError = class {
|
|
|
562
573
|
"SIGTERM",
|
|
563
574
|
status.NOT_ACCEPTABLE
|
|
564
575
|
);
|
|
565
|
-
this.logger.error(
|
|
566
|
-
this.stackTrace.message,
|
|
567
|
-
"SIGTERM",
|
|
568
|
-
this.stackTrace.name,
|
|
569
|
-
signal.toString(),
|
|
570
|
-
status.NOT_ACCEPTABLE
|
|
571
|
-
);
|
|
576
|
+
this.logger.error({
|
|
577
|
+
message: this.stackTrace.message,
|
|
578
|
+
title: "SIGTERM",
|
|
579
|
+
errorType: this.stackTrace.name,
|
|
580
|
+
stackTrace: signal.toString(),
|
|
581
|
+
httpCodeValue: status.NOT_ACCEPTABLE
|
|
582
|
+
});
|
|
572
583
|
process.exit(0);
|
|
573
584
|
}
|
|
574
585
|
/**
|
|
575
586
|
*
|
|
576
587
|
*/
|
|
577
588
|
serverClosing() {
|
|
578
|
-
|
|
579
|
-
|
|
589
|
+
this.serverLogger.opticoreLog({
|
|
590
|
+
timestamp: dateTimeFormatted,
|
|
591
|
+
level: "OPTICORE",
|
|
592
|
+
title: "Stop",
|
|
593
|
+
typeName: "Process stopped",
|
|
594
|
+
message: TranslationLoader2.t("allProcessStopped", this.localeLanguage)
|
|
595
|
+
});
|
|
596
|
+
this.serverLogger.serverLog({
|
|
597
|
+
timestamp: dateTimeFormatted,
|
|
598
|
+
level: "SERVER",
|
|
599
|
+
title: "Ending",
|
|
600
|
+
typeName: "Server ending",
|
|
601
|
+
message: TranslationLoader2.t("serverClosed", this.localeLanguage)
|
|
602
|
+
});
|
|
580
603
|
process.exit();
|
|
581
604
|
}
|
|
582
605
|
/**
|
|
583
606
|
*
|
|
584
607
|
*/
|
|
585
608
|
dropNewConnection() {
|
|
586
|
-
|
|
609
|
+
this.serverLogger.serverLog({
|
|
610
|
+
timestamp: dateTimeFormatted,
|
|
611
|
+
level: "SERVER",
|
|
612
|
+
title: "Dropped connection",
|
|
613
|
+
typeName: TranslationLoader2.t("serverMaxCon", this.localeLanguage),
|
|
614
|
+
message: TranslationLoader2.t("serverDroppedCon", this.localeLanguage)
|
|
615
|
+
});
|
|
587
616
|
}
|
|
588
617
|
/**
|
|
589
618
|
*
|
|
@@ -599,26 +628,26 @@ var ServerListenEventError = class {
|
|
|
599
628
|
if (typeof res.status === "function") {
|
|
600
629
|
res.status(500).send(TranslationLoader2.t("internalServerError", this.localeLanguage, { err }));
|
|
601
630
|
} else {
|
|
602
|
-
this.logger.error(
|
|
603
|
-
TranslationLoader2.t("resStatusNotFunc", this.localeLanguage, { err }),
|
|
604
|
-
"response status",
|
|
605
|
-
TranslationLoader2.t("respndNotFunc", this.localeLanguage, { err }),
|
|
606
|
-
err.stack,
|
|
607
|
-
status.NOT_ACCEPTABLE
|
|
608
|
-
);
|
|
631
|
+
this.logger.error({
|
|
632
|
+
message: TranslationLoader2.t("resStatusNotFunc", this.localeLanguage, { err }),
|
|
633
|
+
title: "response status",
|
|
634
|
+
errorType: TranslationLoader2.t("respndNotFunc", this.localeLanguage, { err }),
|
|
635
|
+
stackTrace: err.stack,
|
|
636
|
+
httpCodeValue: status.NOT_ACCEPTABLE
|
|
637
|
+
});
|
|
609
638
|
}
|
|
610
639
|
this.stackTrace = this.traceError(
|
|
611
640
|
err.message,
|
|
612
641
|
TranslationLoader2.t("expressError", this.localeLanguage, { err }),
|
|
613
642
|
status.NOT_ACCEPTABLE
|
|
614
643
|
);
|
|
615
|
-
this.logger.error(
|
|
616
|
-
this.stackTrace.message,
|
|
617
|
-
TranslationLoader2.t("expressErrorHandlingMiddleware", this.localeLanguage, { err }),
|
|
618
|
-
this.stackTrace.name,
|
|
619
|
-
err.stack,
|
|
620
|
-
status.SERVICE_UNAVAILABLE
|
|
621
|
-
);
|
|
644
|
+
this.logger.error({
|
|
645
|
+
message: this.stackTrace.message,
|
|
646
|
+
title: TranslationLoader2.t("expressErrorHandlingMiddleware", this.localeLanguage, { err }),
|
|
647
|
+
errorType: this.stackTrace.name,
|
|
648
|
+
stackTrace: err.stack,
|
|
649
|
+
httpCodeValue: status.SERVICE_UNAVAILABLE
|
|
650
|
+
});
|
|
622
651
|
} else {
|
|
623
652
|
next();
|
|
624
653
|
}
|
|
@@ -629,11 +658,11 @@ var ServerListenEventError = class {
|
|
|
629
658
|
};
|
|
630
659
|
|
|
631
660
|
// src/core/errors/javaScript/javaScriptErrors.ts
|
|
632
|
-
import { LoggerCore as
|
|
661
|
+
import { LoggerCore as LoggerCore3 } from "opticore-logger";
|
|
633
662
|
import { HttpStatusCode as status2 } from "opticore-http-response";
|
|
634
663
|
import { TranslationLoader as TranslationLoader3 } from "opticore-translator";
|
|
635
664
|
var JavaScriptErrors = class {
|
|
636
|
-
logger = new
|
|
665
|
+
logger = new LoggerCore3();
|
|
637
666
|
stackTrace;
|
|
638
667
|
localLanguage;
|
|
639
668
|
constructor(defaultLocalLang) {
|
|
@@ -641,73 +670,73 @@ var JavaScriptErrors = class {
|
|
|
641
670
|
}
|
|
642
671
|
allError(error) {
|
|
643
672
|
this.stackTrace = this.traceError(error.message, error.name, status2.INTERNAL_SERVER_ERROR);
|
|
644
|
-
this.logger.error(
|
|
645
|
-
TranslationLoader3.t(this.stackTrace.message, this.localLanguage),
|
|
646
|
-
"Error",
|
|
647
|
-
this.stackTrace.name,
|
|
648
|
-
error.stack,
|
|
649
|
-
status2.INTERNAL_SERVER_ERROR
|
|
650
|
-
);
|
|
673
|
+
this.logger.error({
|
|
674
|
+
message: TranslationLoader3.t(this.stackTrace.message, this.localLanguage),
|
|
675
|
+
title: "Error",
|
|
676
|
+
errorType: this.stackTrace.name,
|
|
677
|
+
stackTrace: error.stack,
|
|
678
|
+
httpCodeValue: status2.INTERNAL_SERVER_ERROR
|
|
679
|
+
});
|
|
651
680
|
}
|
|
652
681
|
evalError(error) {
|
|
653
682
|
this.stackTrace = this.traceError(error.message, error.name, status2.INTERNAL_SERVER_ERROR);
|
|
654
|
-
this.logger.error(
|
|
655
|
-
TranslationLoader3.t(this.stackTrace.message, this.localLanguage),
|
|
656
|
-
"EvalError",
|
|
657
|
-
this.stackTrace.name,
|
|
658
|
-
error.stack,
|
|
659
|
-
status2.INTERNAL_SERVER_ERROR
|
|
660
|
-
);
|
|
683
|
+
this.logger.error({
|
|
684
|
+
message: TranslationLoader3.t(this.stackTrace.message, this.localLanguage),
|
|
685
|
+
title: "EvalError",
|
|
686
|
+
errorType: this.stackTrace.name,
|
|
687
|
+
stackTrace: error.stack,
|
|
688
|
+
httpCodeValue: status2.INTERNAL_SERVER_ERROR
|
|
689
|
+
});
|
|
661
690
|
}
|
|
662
691
|
rangeError(error) {
|
|
663
692
|
this.stackTrace = this.traceError(error.message, error.name, status2.INTERNAL_SERVER_ERROR);
|
|
664
|
-
this.logger.error(
|
|
665
|
-
TranslationLoader3.t(this.stackTrace.message, this.localLanguage),
|
|
666
|
-
"RangeError",
|
|
667
|
-
this.stackTrace.name,
|
|
668
|
-
error.stack,
|
|
669
|
-
status2.INTERNAL_SERVER_ERROR
|
|
670
|
-
);
|
|
693
|
+
this.logger.error({
|
|
694
|
+
message: TranslationLoader3.t(this.stackTrace.message, this.localLanguage),
|
|
695
|
+
title: "RangeError",
|
|
696
|
+
errorType: this.stackTrace.name,
|
|
697
|
+
stackTrace: error.stack,
|
|
698
|
+
httpCodeValue: status2.INTERNAL_SERVER_ERROR
|
|
699
|
+
});
|
|
671
700
|
}
|
|
672
701
|
referenceError(error) {
|
|
673
702
|
this.stackTrace = this.traceError(error.message, error.name, status2.INTERNAL_SERVER_ERROR);
|
|
674
|
-
this.logger.error(
|
|
675
|
-
TranslationLoader3.t(this.stackTrace.message, this.localLanguage),
|
|
676
|
-
"ReferenceError",
|
|
677
|
-
this.stackTrace.name,
|
|
678
|
-
error.stack,
|
|
679
|
-
status2.INTERNAL_SERVER_ERROR
|
|
680
|
-
);
|
|
703
|
+
this.logger.error({
|
|
704
|
+
message: TranslationLoader3.t(this.stackTrace.message, this.localLanguage),
|
|
705
|
+
title: "ReferenceError",
|
|
706
|
+
errorType: this.stackTrace.name,
|
|
707
|
+
stackTrace: error.stack,
|
|
708
|
+
httpCodeValue: status2.INTERNAL_SERVER_ERROR
|
|
709
|
+
});
|
|
681
710
|
}
|
|
682
711
|
syntaxError(error) {
|
|
683
712
|
this.stackTrace = this.traceError(error.message, error.name, status2.INTERNAL_SERVER_ERROR);
|
|
684
|
-
this.logger.error(
|
|
685
|
-
TranslationLoader3.t(this.stackTrace.message, this.localLanguage),
|
|
686
|
-
"SyntaxError",
|
|
687
|
-
this.stackTrace.name,
|
|
688
|
-
error.stack,
|
|
689
|
-
status2.INTERNAL_SERVER_ERROR
|
|
690
|
-
);
|
|
713
|
+
this.logger.error({
|
|
714
|
+
message: TranslationLoader3.t(this.stackTrace.message, this.localLanguage),
|
|
715
|
+
title: "SyntaxError",
|
|
716
|
+
errorType: this.stackTrace.name,
|
|
717
|
+
stackTrace: error.stack,
|
|
718
|
+
httpCodeValue: status2.INTERNAL_SERVER_ERROR
|
|
719
|
+
});
|
|
691
720
|
}
|
|
692
721
|
typeError(error) {
|
|
693
722
|
this.stackTrace = this.traceError(error.message, error.name, status2.INTERNAL_SERVER_ERROR);
|
|
694
|
-
this.logger.error(
|
|
695
|
-
TranslationLoader3.t(this.stackTrace.message, this.localLanguage),
|
|
696
|
-
"TypeError",
|
|
697
|
-
this.stackTrace.name,
|
|
698
|
-
error.stack,
|
|
699
|
-
status2.INTERNAL_SERVER_ERROR
|
|
700
|
-
);
|
|
723
|
+
this.logger.error({
|
|
724
|
+
message: TranslationLoader3.t(this.stackTrace.message, this.localLanguage),
|
|
725
|
+
title: "TypeError",
|
|
726
|
+
errorType: this.stackTrace.name,
|
|
727
|
+
stackTrace: error.stack,
|
|
728
|
+
httpCodeValue: status2.INTERNAL_SERVER_ERROR
|
|
729
|
+
});
|
|
701
730
|
}
|
|
702
731
|
uRIError(error) {
|
|
703
732
|
this.stackTrace = this.traceError(error.message, error.name, status2.INTERNAL_SERVER_ERROR);
|
|
704
|
-
this.logger.error(
|
|
705
|
-
TranslationLoader3.t(this.stackTrace.message, this.localLanguage),
|
|
706
|
-
"URIError",
|
|
707
|
-
this.stackTrace.name,
|
|
708
|
-
error.stack,
|
|
709
|
-
status2.INTERNAL_SERVER_ERROR
|
|
710
|
-
);
|
|
733
|
+
this.logger.error({
|
|
734
|
+
message: TranslationLoader3.t(this.stackTrace.message, this.localLanguage),
|
|
735
|
+
title: "URIError",
|
|
736
|
+
errorType: this.stackTrace.name,
|
|
737
|
+
stackTrace: error.stack,
|
|
738
|
+
httpCodeValue: status2.INTERNAL_SERVER_ERROR
|
|
739
|
+
});
|
|
711
740
|
}
|
|
712
741
|
traceError(props, name, status7) {
|
|
713
742
|
return new StackTraceError(props, name, status7, true);
|
|
@@ -715,11 +744,11 @@ var JavaScriptErrors = class {
|
|
|
715
744
|
};
|
|
716
745
|
|
|
717
746
|
// src/core/errors/system/systemErrors.ts
|
|
718
|
-
import { LoggerCore as
|
|
747
|
+
import { LoggerCore as LoggerCore4 } from "opticore-logger";
|
|
719
748
|
import { HttpStatusCode as status3 } from "opticore-http-response";
|
|
720
749
|
import { TranslationLoader as TranslationLoader4 } from "opticore-translator";
|
|
721
750
|
var SystemErrors = class {
|
|
722
|
-
logger = new
|
|
751
|
+
logger = new LoggerCore4();
|
|
723
752
|
stackTrace;
|
|
724
753
|
localLanguage;
|
|
725
754
|
constructor(defaultLocalLang) {
|
|
@@ -727,133 +756,133 @@ var SystemErrors = class {
|
|
|
727
756
|
}
|
|
728
757
|
eAcces(error) {
|
|
729
758
|
this.stackTrace = this.traceError(error.message, error.name, status3.INTERNAL_SERVER_ERROR);
|
|
730
|
-
this.logger.error(
|
|
731
|
-
TranslationLoader4.t(this.stackTrace.message, this.localLanguage),
|
|
732
|
-
"EACCES",
|
|
733
|
-
this.stackTrace.name,
|
|
734
|
-
error.stack,
|
|
735
|
-
status3.INTERNAL_SERVER_ERROR
|
|
736
|
-
);
|
|
759
|
+
this.logger.error({
|
|
760
|
+
message: TranslationLoader4.t(this.stackTrace.message, this.localLanguage),
|
|
761
|
+
title: "EACCES",
|
|
762
|
+
errorType: this.stackTrace.name,
|
|
763
|
+
stackTrace: error.stack,
|
|
764
|
+
httpCodeValue: status3.INTERNAL_SERVER_ERROR
|
|
765
|
+
});
|
|
737
766
|
}
|
|
738
767
|
eAddrInUse(error) {
|
|
739
768
|
this.stackTrace = this.traceError(error.message, error.name, status3.INTERNAL_SERVER_ERROR);
|
|
740
|
-
this.logger.error(
|
|
741
|
-
TranslationLoader4.t(this.stackTrace.message, this.localLanguage),
|
|
742
|
-
"EADDRINUSE",
|
|
743
|
-
this.stackTrace.name,
|
|
744
|
-
error.stack,
|
|
745
|
-
status3.INTERNAL_SERVER_ERROR
|
|
746
|
-
);
|
|
769
|
+
this.logger.error({
|
|
770
|
+
message: TranslationLoader4.t(this.stackTrace.message, this.localLanguage),
|
|
771
|
+
title: "EADDRINUSE",
|
|
772
|
+
errorType: this.stackTrace.name,
|
|
773
|
+
stackTrace: error.stack,
|
|
774
|
+
httpCodeValue: status3.INTERNAL_SERVER_ERROR
|
|
775
|
+
});
|
|
747
776
|
}
|
|
748
777
|
eConnRefused(error) {
|
|
749
778
|
this.stackTrace = this.traceError(error.message, error.name, status3.INTERNAL_SERVER_ERROR);
|
|
750
|
-
this.logger.error(
|
|
751
|
-
TranslationLoader4.t(this.stackTrace.message, this.localLanguage),
|
|
752
|
-
"ECONNREFUSED",
|
|
753
|
-
this.stackTrace.name,
|
|
754
|
-
error.stack,
|
|
755
|
-
status3.INTERNAL_SERVER_ERROR
|
|
756
|
-
);
|
|
779
|
+
this.logger.error({
|
|
780
|
+
message: TranslationLoader4.t(this.stackTrace.message, this.localLanguage),
|
|
781
|
+
title: "ECONNREFUSED",
|
|
782
|
+
errorType: this.stackTrace.name,
|
|
783
|
+
stackTrace: error.stack,
|
|
784
|
+
httpCodeValue: status3.INTERNAL_SERVER_ERROR
|
|
785
|
+
});
|
|
757
786
|
}
|
|
758
787
|
eConnReset(error) {
|
|
759
788
|
this.stackTrace = this.traceError(error.message, error.name, status3.INTERNAL_SERVER_ERROR);
|
|
760
|
-
this.logger.error(
|
|
761
|
-
TranslationLoader4.t(this.stackTrace.message, this.localLanguage),
|
|
762
|
-
"ECONNRESET",
|
|
763
|
-
this.stackTrace.name,
|
|
764
|
-
error.stack,
|
|
765
|
-
status3.INTERNAL_SERVER_ERROR
|
|
766
|
-
);
|
|
789
|
+
this.logger.error({
|
|
790
|
+
message: TranslationLoader4.t(this.stackTrace.message, this.localLanguage),
|
|
791
|
+
title: "ECONNRESET",
|
|
792
|
+
errorType: this.stackTrace.name,
|
|
793
|
+
stackTrace: error.stack,
|
|
794
|
+
httpCodeValue: status3.INTERNAL_SERVER_ERROR
|
|
795
|
+
});
|
|
767
796
|
}
|
|
768
797
|
eExist(error) {
|
|
769
798
|
this.stackTrace = this.traceError(error.message, error.name, status3.INTERNAL_SERVER_ERROR);
|
|
770
|
-
this.logger.error(
|
|
771
|
-
TranslationLoader4.t(this.stackTrace.message, this.localLanguage),
|
|
772
|
-
"EEXIST",
|
|
773
|
-
this.stackTrace.name,
|
|
774
|
-
error.stack,
|
|
775
|
-
status3.INTERNAL_SERVER_ERROR
|
|
776
|
-
);
|
|
799
|
+
this.logger.error({
|
|
800
|
+
message: TranslationLoader4.t(this.stackTrace.message, this.localLanguage),
|
|
801
|
+
title: "EEXIST",
|
|
802
|
+
errorType: this.stackTrace.name,
|
|
803
|
+
stackTrace: error.stack,
|
|
804
|
+
httpCodeValue: status3.INTERNAL_SERVER_ERROR
|
|
805
|
+
});
|
|
777
806
|
}
|
|
778
807
|
eIsDir(error) {
|
|
779
808
|
this.stackTrace = this.traceError(error.message, error.name, status3.INTERNAL_SERVER_ERROR);
|
|
780
|
-
this.logger.error(
|
|
781
|
-
TranslationLoader4.t(this.stackTrace.message, this.localLanguage),
|
|
782
|
-
"EISDIR",
|
|
783
|
-
this.stackTrace.name,
|
|
784
|
-
error.stack,
|
|
785
|
-
status3.INTERNAL_SERVER_ERROR
|
|
786
|
-
);
|
|
809
|
+
this.logger.error({
|
|
810
|
+
message: TranslationLoader4.t(this.stackTrace.message, this.localLanguage),
|
|
811
|
+
title: "EISDIR",
|
|
812
|
+
errorType: this.stackTrace.name,
|
|
813
|
+
stackTrace: error.stack,
|
|
814
|
+
httpCodeValue: status3.INTERNAL_SERVER_ERROR
|
|
815
|
+
});
|
|
787
816
|
}
|
|
788
817
|
eMFile(error) {
|
|
789
818
|
this.stackTrace = this.traceError(error.message, error.name, status3.INTERNAL_SERVER_ERROR);
|
|
790
|
-
this.logger.error(
|
|
791
|
-
TranslationLoader4.t(this.stackTrace.message, this.localLanguage),
|
|
792
|
-
"EMFILE",
|
|
793
|
-
this.stackTrace.name,
|
|
794
|
-
error.stack,
|
|
795
|
-
status3.INTERNAL_SERVER_ERROR
|
|
796
|
-
);
|
|
819
|
+
this.logger.error({
|
|
820
|
+
message: TranslationLoader4.t(this.stackTrace.message, this.localLanguage),
|
|
821
|
+
title: "EMFILE",
|
|
822
|
+
errorType: this.stackTrace.name,
|
|
823
|
+
stackTrace: error.stack,
|
|
824
|
+
httpCodeValue: status3.INTERNAL_SERVER_ERROR
|
|
825
|
+
});
|
|
797
826
|
}
|
|
798
827
|
eNoEnt(error) {
|
|
799
828
|
this.stackTrace = this.traceError(error.message, error.name, status3.INTERNAL_SERVER_ERROR);
|
|
800
|
-
this.logger.error(
|
|
801
|
-
TranslationLoader4.t(this.stackTrace.message, this.localLanguage),
|
|
802
|
-
"ENOENT",
|
|
803
|
-
this.stackTrace.name,
|
|
804
|
-
error.stack,
|
|
805
|
-
status3.INTERNAL_SERVER_ERROR
|
|
806
|
-
);
|
|
829
|
+
this.logger.error({
|
|
830
|
+
message: TranslationLoader4.t(this.stackTrace.message, this.localLanguage),
|
|
831
|
+
title: "ENOENT",
|
|
832
|
+
errorType: this.stackTrace.name,
|
|
833
|
+
stackTrace: error.stack,
|
|
834
|
+
httpCodeValue: status3.INTERNAL_SERVER_ERROR
|
|
835
|
+
});
|
|
807
836
|
}
|
|
808
837
|
eNotDir(error) {
|
|
809
838
|
this.stackTrace = this.traceError(error.message, error.name, status3.INTERNAL_SERVER_ERROR);
|
|
810
|
-
this.logger.error(
|
|
811
|
-
TranslationLoader4.t(this.stackTrace.message, this.localLanguage),
|
|
812
|
-
"ENOTDIR",
|
|
813
|
-
this.stackTrace.name,
|
|
814
|
-
error.stack,
|
|
815
|
-
status3.INTERNAL_SERVER_ERROR
|
|
816
|
-
);
|
|
839
|
+
this.logger.error({
|
|
840
|
+
message: TranslationLoader4.t(this.stackTrace.message, this.localLanguage),
|
|
841
|
+
title: "ENOTDIR",
|
|
842
|
+
errorType: this.stackTrace.name,
|
|
843
|
+
stackTrace: error.stack,
|
|
844
|
+
httpCodeValue: status3.INTERNAL_SERVER_ERROR
|
|
845
|
+
});
|
|
817
846
|
}
|
|
818
847
|
eNotEmpty(error) {
|
|
819
848
|
this.stackTrace = this.traceError(error.message, error.name, status3.INTERNAL_SERVER_ERROR);
|
|
820
|
-
this.logger.error(
|
|
821
|
-
TranslationLoader4.t(this.stackTrace.message, this.localLanguage),
|
|
822
|
-
"ENOTEMPTY",
|
|
823
|
-
this.stackTrace.name,
|
|
824
|
-
error.stack,
|
|
825
|
-
status3.INTERNAL_SERVER_ERROR
|
|
826
|
-
);
|
|
849
|
+
this.logger.error({
|
|
850
|
+
message: TranslationLoader4.t(this.stackTrace.message, this.localLanguage),
|
|
851
|
+
title: "ENOTEMPTY",
|
|
852
|
+
errorType: this.stackTrace.name,
|
|
853
|
+
stackTrace: error.stack,
|
|
854
|
+
httpCodeValue: status3.INTERNAL_SERVER_ERROR
|
|
855
|
+
});
|
|
827
856
|
}
|
|
828
857
|
ePerm(error) {
|
|
829
858
|
this.stackTrace = this.traceError(error.message, error.name, status3.INTERNAL_SERVER_ERROR);
|
|
830
|
-
this.logger.error(
|
|
831
|
-
TranslationLoader4.t(this.stackTrace.message, this.localLanguage),
|
|
832
|
-
"EPERM",
|
|
833
|
-
this.stackTrace.name,
|
|
834
|
-
error.stack,
|
|
835
|
-
status3.INTERNAL_SERVER_ERROR
|
|
836
|
-
);
|
|
859
|
+
this.logger.error({
|
|
860
|
+
message: TranslationLoader4.t(this.stackTrace.message, this.localLanguage),
|
|
861
|
+
title: "EPERM",
|
|
862
|
+
errorType: this.stackTrace.name,
|
|
863
|
+
stackTrace: error.stack,
|
|
864
|
+
httpCodeValue: status3.INTERNAL_SERVER_ERROR
|
|
865
|
+
});
|
|
837
866
|
}
|
|
838
867
|
ePipe(error) {
|
|
839
868
|
this.stackTrace = this.traceError(error.message, error.name, status3.INTERNAL_SERVER_ERROR);
|
|
840
|
-
this.logger.error(
|
|
841
|
-
TranslationLoader4.t(this.stackTrace.message, this.localLanguage),
|
|
842
|
-
"EPIPE",
|
|
843
|
-
this.stackTrace.name,
|
|
844
|
-
error.stack,
|
|
845
|
-
status3.INTERNAL_SERVER_ERROR
|
|
846
|
-
);
|
|
869
|
+
this.logger.error({
|
|
870
|
+
message: TranslationLoader4.t(this.stackTrace.message, this.localLanguage),
|
|
871
|
+
title: "EPIPE",
|
|
872
|
+
errorType: this.stackTrace.name,
|
|
873
|
+
stackTrace: error.stack,
|
|
874
|
+
httpCodeValue: status3.INTERNAL_SERVER_ERROR
|
|
875
|
+
});
|
|
847
876
|
}
|
|
848
877
|
eTimedOut(error) {
|
|
849
878
|
this.stackTrace = this.traceError(error.message, error.name, status3.INTERNAL_SERVER_ERROR);
|
|
850
|
-
this.logger.error(
|
|
851
|
-
TranslationLoader4.t(this.stackTrace.message, this.localLanguage),
|
|
852
|
-
"ETIMEDOUT",
|
|
853
|
-
this.stackTrace.name,
|
|
854
|
-
error.stack,
|
|
855
|
-
status3.INTERNAL_SERVER_ERROR
|
|
856
|
-
);
|
|
879
|
+
this.logger.error({
|
|
880
|
+
message: TranslationLoader4.t(this.stackTrace.message, this.localLanguage),
|
|
881
|
+
title: "ETIMEDOUT",
|
|
882
|
+
errorType: this.stackTrace.name,
|
|
883
|
+
stackTrace: error.stack,
|
|
884
|
+
httpCodeValue: status3.INTERNAL_SERVER_ERROR
|
|
885
|
+
});
|
|
857
886
|
}
|
|
858
887
|
traceError(props, name, status7) {
|
|
859
888
|
return new StackTraceError(props, name, status7, true);
|
|
@@ -861,11 +890,11 @@ var SystemErrors = class {
|
|
|
861
890
|
};
|
|
862
891
|
|
|
863
892
|
// src/core/errors/openSSL/openSSLErrors.ts
|
|
864
|
-
import { LoggerCore as
|
|
893
|
+
import { LoggerCore as LoggerCore5 } from "opticore-logger";
|
|
865
894
|
import { HttpStatusCode as status4 } from "opticore-http-response";
|
|
866
895
|
import { TranslationLoader as TranslationLoader5 } from "opticore-translator";
|
|
867
896
|
var OpenSSLErrors = class {
|
|
868
|
-
logger = new
|
|
897
|
+
logger = new LoggerCore5();
|
|
869
898
|
stackTrace;
|
|
870
899
|
localLanguage;
|
|
871
900
|
constructor(defaultLocalLang) {
|
|
@@ -873,33 +902,33 @@ var OpenSSLErrors = class {
|
|
|
873
902
|
}
|
|
874
903
|
errOsSLEvpUnsupported(error) {
|
|
875
904
|
this.stackTrace = this.traceError(error.message, error.name, status4.INTERNAL_SERVER_ERROR);
|
|
876
|
-
this.logger.error(
|
|
877
|
-
TranslationLoader5.t(this.stackTrace.message, this.localLanguage),
|
|
878
|
-
"ERR_OSSL_EVP_UNSUPPORTED",
|
|
879
|
-
this.stackTrace.name,
|
|
880
|
-
error.stack,
|
|
881
|
-
status4.INTERNAL_SERVER_ERROR
|
|
882
|
-
);
|
|
905
|
+
this.logger.error({
|
|
906
|
+
message: TranslationLoader5.t(this.stackTrace.message, this.localLanguage),
|
|
907
|
+
title: "ERR_OSSL_EVP_UNSUPPORTED",
|
|
908
|
+
errorType: this.stackTrace.name,
|
|
909
|
+
stackTrace: error.stack,
|
|
910
|
+
httpCodeValue: status4.INTERNAL_SERVER_ERROR
|
|
911
|
+
});
|
|
883
912
|
}
|
|
884
913
|
errOsSLBadDecrypt(error) {
|
|
885
914
|
this.stackTrace = this.traceError(error.message, error.name, status4.INTERNAL_SERVER_ERROR);
|
|
886
|
-
this.logger.error(
|
|
887
|
-
TranslationLoader5.t(this.stackTrace.message, this.localLanguage),
|
|
888
|
-
"ERR_OSSL_BAD_DECRYPT",
|
|
889
|
-
this.stackTrace.name,
|
|
890
|
-
error.stack,
|
|
891
|
-
status4.INTERNAL_SERVER_ERROR
|
|
892
|
-
);
|
|
915
|
+
this.logger.error({
|
|
916
|
+
message: TranslationLoader5.t(this.stackTrace.message, this.localLanguage),
|
|
917
|
+
title: "ERR_OSSL_BAD_DECRYPT",
|
|
918
|
+
errorType: this.stackTrace.name,
|
|
919
|
+
stackTrace: error.stack,
|
|
920
|
+
httpCodeValue: status4.INTERNAL_SERVER_ERROR
|
|
921
|
+
});
|
|
893
922
|
}
|
|
894
923
|
errOsSLWrongFinalBlockLength(error) {
|
|
895
924
|
this.stackTrace = this.traceError(error.message, error.name, status4.INTERNAL_SERVER_ERROR);
|
|
896
|
-
this.logger.error(
|
|
897
|
-
TranslationLoader5.t(this.stackTrace.message, this.localLanguage),
|
|
898
|
-
"ERR_OSSL_WRONG_FINAL_BLOCK_LENGTH",
|
|
899
|
-
this.stackTrace.name,
|
|
900
|
-
error.stack,
|
|
901
|
-
status4.INTERNAL_SERVER_ERROR
|
|
902
|
-
);
|
|
925
|
+
this.logger.error({
|
|
926
|
+
message: TranslationLoader5.t(this.stackTrace.message, this.localLanguage),
|
|
927
|
+
title: "ERR_OSSL_WRONG_FINAL_BLOCK_LENGTH",
|
|
928
|
+
errorType: this.stackTrace.name,
|
|
929
|
+
stackTrace: error.stack,
|
|
930
|
+
httpCodeValue: status4.INTERNAL_SERVER_ERROR
|
|
931
|
+
});
|
|
903
932
|
}
|
|
904
933
|
traceError(props, name, status7) {
|
|
905
934
|
return new StackTraceError(props, name, status7, true);
|
|
@@ -907,11 +936,11 @@ var OpenSSLErrors = class {
|
|
|
907
936
|
};
|
|
908
937
|
|
|
909
938
|
// src/core/errors/internal/internalErrors.ts
|
|
910
|
-
import { LoggerCore as
|
|
939
|
+
import { LoggerCore as LoggerCore6 } from "opticore-logger";
|
|
911
940
|
import { HttpStatusCode as status5 } from "opticore-http-response";
|
|
912
941
|
import { TranslationLoader as TranslationLoader6 } from "opticore-translator";
|
|
913
942
|
var InternalErrors = class {
|
|
914
|
-
logger = new
|
|
943
|
+
logger = new LoggerCore6();
|
|
915
944
|
stackTrace;
|
|
916
945
|
localLanguage;
|
|
917
946
|
constructor(defaultLocalLang) {
|
|
@@ -919,63 +948,63 @@ var InternalErrors = class {
|
|
|
919
948
|
}
|
|
920
949
|
errInvalidArgType(error) {
|
|
921
950
|
this.stackTrace = this.traceError(error.message, error.name, status5.INTERNAL_SERVER_ERROR);
|
|
922
|
-
this.logger.error(
|
|
923
|
-
TranslationLoader6.t(this.stackTrace.message, this.localLanguage),
|
|
924
|
-
"ERR_INVALID_ARG_TYPE",
|
|
925
|
-
this.stackTrace.name,
|
|
926
|
-
error.stack,
|
|
927
|
-
status5.INTERNAL_SERVER_ERROR
|
|
928
|
-
);
|
|
951
|
+
this.logger.error({
|
|
952
|
+
message: TranslationLoader6.t(this.stackTrace.message, this.localLanguage),
|
|
953
|
+
title: "ERR_INVALID_ARG_TYPE",
|
|
954
|
+
errorType: this.stackTrace.name,
|
|
955
|
+
stackTrace: error.stack,
|
|
956
|
+
httpCodeValue: status5.INTERNAL_SERVER_ERROR
|
|
957
|
+
});
|
|
929
958
|
}
|
|
930
959
|
errInvalidCallback(error) {
|
|
931
960
|
this.stackTrace = this.traceError(error.message, error.name, status5.INTERNAL_SERVER_ERROR);
|
|
932
|
-
this.logger.error(
|
|
933
|
-
TranslationLoader6.t(this.stackTrace.message, this.localLanguage),
|
|
934
|
-
"ERR_INVALID_CALLBACK",
|
|
935
|
-
this.stackTrace.name,
|
|
936
|
-
error.stack,
|
|
937
|
-
status5.INTERNAL_SERVER_ERROR
|
|
938
|
-
);
|
|
961
|
+
this.logger.error({
|
|
962
|
+
message: TranslationLoader6.t(this.stackTrace.message, this.localLanguage),
|
|
963
|
+
title: "ERR_INVALID_CALLBACK",
|
|
964
|
+
errorType: this.stackTrace.name,
|
|
965
|
+
stackTrace: error.stack,
|
|
966
|
+
httpCodeValue: status5.INTERNAL_SERVER_ERROR
|
|
967
|
+
});
|
|
939
968
|
}
|
|
940
969
|
errHttpHeadersSent(error) {
|
|
941
970
|
this.stackTrace = this.traceError(error.message, error.name, status5.INTERNAL_SERVER_ERROR);
|
|
942
|
-
this.logger.error(
|
|
943
|
-
TranslationLoader6.t(this.stackTrace.message, this.localLanguage),
|
|
944
|
-
"ERR_HTTP_HEADERS_SENT",
|
|
945
|
-
this.stackTrace.name,
|
|
946
|
-
error.stack,
|
|
947
|
-
status5.INTERNAL_SERVER_ERROR
|
|
948
|
-
);
|
|
971
|
+
this.logger.error({
|
|
972
|
+
message: TranslationLoader6.t(this.stackTrace.message, this.localLanguage),
|
|
973
|
+
title: "ERR_HTTP_HEADERS_SENT",
|
|
974
|
+
errorType: this.stackTrace.name,
|
|
975
|
+
stackTrace: error.stack,
|
|
976
|
+
httpCodeValue: status5.INTERNAL_SERVER_ERROR
|
|
977
|
+
});
|
|
949
978
|
}
|
|
950
979
|
errStreamDestroyed(error) {
|
|
951
980
|
this.stackTrace = this.traceError(error.message, error.name, status5.INTERNAL_SERVER_ERROR);
|
|
952
|
-
this.logger.error(
|
|
953
|
-
TranslationLoader6.t(this.stackTrace.message, this.localLanguage),
|
|
954
|
-
"ERR_STREAM_DESTROYED",
|
|
955
|
-
this.stackTrace.name,
|
|
956
|
-
error.stack,
|
|
957
|
-
status5.INTERNAL_SERVER_ERROR
|
|
958
|
-
);
|
|
981
|
+
this.logger.error({
|
|
982
|
+
message: TranslationLoader6.t(this.stackTrace.message, this.localLanguage),
|
|
983
|
+
title: "ERR_STREAM_DESTROYED",
|
|
984
|
+
errorType: this.stackTrace.name,
|
|
985
|
+
stackTrace: error.stack,
|
|
986
|
+
httpCodeValue: status5.INTERNAL_SERVER_ERROR
|
|
987
|
+
});
|
|
959
988
|
}
|
|
960
989
|
errTlsCertAltNameInvalid(error) {
|
|
961
990
|
this.stackTrace = this.traceError(error.message, error.name, status5.INTERNAL_SERVER_ERROR);
|
|
962
|
-
this.logger.error(
|
|
963
|
-
TranslationLoader6.t(this.stackTrace.message, this.localLanguage),
|
|
964
|
-
"ERR_TLS_CERT_ALTNAME_INVALID",
|
|
965
|
-
this.stackTrace.name,
|
|
966
|
-
error.stack,
|
|
967
|
-
status5.INTERNAL_SERVER_ERROR
|
|
968
|
-
);
|
|
991
|
+
this.logger.error({
|
|
992
|
+
message: TranslationLoader6.t(this.stackTrace.message, this.localLanguage),
|
|
993
|
+
title: "ERR_TLS_CERT_ALTNAME_INVALID",
|
|
994
|
+
errorType: this.stackTrace.name,
|
|
995
|
+
stackTrace: error.stack,
|
|
996
|
+
httpCodeValue: status5.INTERNAL_SERVER_ERROR
|
|
997
|
+
});
|
|
969
998
|
}
|
|
970
999
|
errUnsupportedEsmUrlScheme(error) {
|
|
971
1000
|
this.stackTrace = this.traceError(error.message, error.name, status5.INTERNAL_SERVER_ERROR);
|
|
972
|
-
this.logger.error(
|
|
973
|
-
TranslationLoader6.t(this.stackTrace.message, this.localLanguage),
|
|
974
|
-
"ERR_UNSUPPORTED_ESM_URL_SCHEME",
|
|
975
|
-
this.stackTrace.name,
|
|
976
|
-
error.stack,
|
|
977
|
-
status5.INTERNAL_SERVER_ERROR
|
|
978
|
-
);
|
|
1001
|
+
this.logger.error({
|
|
1002
|
+
message: TranslationLoader6.t(this.stackTrace.message, this.localLanguage),
|
|
1003
|
+
title: "ERR_UNSUPPORTED_ESM_URL_SCHEME",
|
|
1004
|
+
errorType: this.stackTrace.name,
|
|
1005
|
+
stackTrace: error.stack,
|
|
1006
|
+
httpCodeValue: status5.INTERNAL_SERVER_ERROR
|
|
1007
|
+
});
|
|
979
1008
|
}
|
|
980
1009
|
traceError(props, name, status7) {
|
|
981
1010
|
return new StackTraceError(props, name, status7, true);
|
|
@@ -983,11 +1012,11 @@ var InternalErrors = class {
|
|
|
983
1012
|
};
|
|
984
1013
|
|
|
985
1014
|
// src/core/errors/assertion/assertionErrors.ts
|
|
986
|
-
import { LoggerCore as
|
|
1015
|
+
import { LoggerCore as LoggerCore7 } from "opticore-logger";
|
|
987
1016
|
import { HttpStatusCode as status6 } from "opticore-http-response";
|
|
988
1017
|
import { TranslationLoader as TranslationLoader7 } from "opticore-translator";
|
|
989
1018
|
var AssertionErrors = class {
|
|
990
|
-
logger = new
|
|
1019
|
+
logger = new LoggerCore7();
|
|
991
1020
|
stackTrace;
|
|
992
1021
|
localLanguage;
|
|
993
1022
|
constructor(defaultLocalLang) {
|
|
@@ -995,83 +1024,83 @@ var AssertionErrors = class {
|
|
|
995
1024
|
}
|
|
996
1025
|
assertionError(error) {
|
|
997
1026
|
this.stackTrace = this.traceError(error.message, error.name, status6.INTERNAL_SERVER_ERROR);
|
|
998
|
-
this.logger.error(
|
|
999
|
-
TranslationLoader7.t(this.stackTrace.message, this.localLanguage),
|
|
1000
|
-
"AssertionError",
|
|
1001
|
-
this.stackTrace.name,
|
|
1002
|
-
error.stack,
|
|
1003
|
-
status6.INTERNAL_SERVER_ERROR
|
|
1004
|
-
);
|
|
1027
|
+
this.logger.error({
|
|
1028
|
+
message: TranslationLoader7.t(this.stackTrace.message, this.localLanguage),
|
|
1029
|
+
title: "AssertionError",
|
|
1030
|
+
errorType: this.stackTrace.name,
|
|
1031
|
+
stackTrace: error.stack,
|
|
1032
|
+
httpCodeValue: status6.INTERNAL_SERVER_ERROR
|
|
1033
|
+
});
|
|
1005
1034
|
}
|
|
1006
1035
|
allError(error) {
|
|
1007
1036
|
this.stackTrace = this.traceError(error.message, error.name, status6.INTERNAL_SERVER_ERROR);
|
|
1008
|
-
this.logger.error(
|
|
1009
|
-
TranslationLoader7.t(this.stackTrace.message, this.localLanguage),
|
|
1010
|
-
"Error",
|
|
1011
|
-
this.stackTrace.name,
|
|
1012
|
-
error.stack,
|
|
1013
|
-
status6.INTERNAL_SERVER_ERROR
|
|
1014
|
-
);
|
|
1037
|
+
this.logger.error({
|
|
1038
|
+
message: TranslationLoader7.t(this.stackTrace.message, this.localLanguage),
|
|
1039
|
+
title: "Error",
|
|
1040
|
+
errorType: this.stackTrace.name,
|
|
1041
|
+
stackTrace: error.stack,
|
|
1042
|
+
httpCodeValue: status6.INTERNAL_SERVER_ERROR
|
|
1043
|
+
});
|
|
1015
1044
|
}
|
|
1016
1045
|
evalError(error) {
|
|
1017
1046
|
this.stackTrace = this.traceError(error.message, error.name, status6.INTERNAL_SERVER_ERROR);
|
|
1018
|
-
this.logger.error(
|
|
1019
|
-
TranslationLoader7.t(this.stackTrace.message, this.localLanguage),
|
|
1020
|
-
"EvalError",
|
|
1021
|
-
this.stackTrace.name,
|
|
1022
|
-
error.stack,
|
|
1023
|
-
status6.INTERNAL_SERVER_ERROR
|
|
1024
|
-
);
|
|
1047
|
+
this.logger.error({
|
|
1048
|
+
message: TranslationLoader7.t(this.stackTrace.message, this.localLanguage),
|
|
1049
|
+
title: "EvalError",
|
|
1050
|
+
errorType: this.stackTrace.name,
|
|
1051
|
+
stackTrace: error.stack,
|
|
1052
|
+
httpCodeValue: status6.INTERNAL_SERVER_ERROR
|
|
1053
|
+
});
|
|
1025
1054
|
}
|
|
1026
1055
|
rangeError(error) {
|
|
1027
1056
|
this.stackTrace = this.traceError(error.message, error.name, status6.INTERNAL_SERVER_ERROR);
|
|
1028
|
-
this.logger.error(
|
|
1029
|
-
TranslationLoader7.t(this.stackTrace.message, this.localLanguage),
|
|
1030
|
-
"RangeError",
|
|
1031
|
-
this.stackTrace.name,
|
|
1032
|
-
error.stack,
|
|
1033
|
-
status6.INTERNAL_SERVER_ERROR
|
|
1034
|
-
);
|
|
1057
|
+
this.logger.error({
|
|
1058
|
+
message: TranslationLoader7.t(this.stackTrace.message, this.localLanguage),
|
|
1059
|
+
title: "RangeError",
|
|
1060
|
+
errorType: this.stackTrace.name,
|
|
1061
|
+
stackTrace: error.stack,
|
|
1062
|
+
httpCodeValue: status6.INTERNAL_SERVER_ERROR
|
|
1063
|
+
});
|
|
1035
1064
|
}
|
|
1036
1065
|
referenceError(error) {
|
|
1037
1066
|
this.stackTrace = this.traceError(error.message, error.name, status6.INTERNAL_SERVER_ERROR);
|
|
1038
|
-
this.logger.error(
|
|
1039
|
-
TranslationLoader7.t(this.stackTrace.message, this.localLanguage),
|
|
1040
|
-
"ReferenceError",
|
|
1041
|
-
this.stackTrace.name,
|
|
1042
|
-
error.stack,
|
|
1043
|
-
status6.INTERNAL_SERVER_ERROR
|
|
1044
|
-
);
|
|
1067
|
+
this.logger.error({
|
|
1068
|
+
message: TranslationLoader7.t(this.stackTrace.message, this.localLanguage),
|
|
1069
|
+
title: "ReferenceError",
|
|
1070
|
+
errorType: this.stackTrace.name,
|
|
1071
|
+
stackTrace: error.stack,
|
|
1072
|
+
httpCodeValue: status6.INTERNAL_SERVER_ERROR
|
|
1073
|
+
});
|
|
1045
1074
|
}
|
|
1046
1075
|
syntaxError(error) {
|
|
1047
1076
|
this.stackTrace = this.traceError(error.message, error.name, status6.INTERNAL_SERVER_ERROR);
|
|
1048
|
-
this.logger.error(
|
|
1049
|
-
TranslationLoader7.t(this.stackTrace.message, this.localLanguage),
|
|
1050
|
-
"SyntaxError",
|
|
1051
|
-
this.stackTrace.name,
|
|
1052
|
-
error.stack,
|
|
1053
|
-
status6.INTERNAL_SERVER_ERROR
|
|
1054
|
-
);
|
|
1077
|
+
this.logger.error({
|
|
1078
|
+
message: TranslationLoader7.t(this.stackTrace.message, this.localLanguage),
|
|
1079
|
+
title: "SyntaxError",
|
|
1080
|
+
errorType: this.stackTrace.name,
|
|
1081
|
+
stackTrace: error.stack,
|
|
1082
|
+
httpCodeValue: status6.INTERNAL_SERVER_ERROR
|
|
1083
|
+
});
|
|
1055
1084
|
}
|
|
1056
1085
|
typeError(error) {
|
|
1057
1086
|
this.stackTrace = this.traceError(error.message, error.name, status6.INTERNAL_SERVER_ERROR);
|
|
1058
|
-
this.logger.error(
|
|
1059
|
-
TranslationLoader7.t(this.stackTrace.message, this.localLanguage),
|
|
1060
|
-
"TypeError",
|
|
1061
|
-
this.stackTrace.name,
|
|
1062
|
-
error.stack,
|
|
1063
|
-
status6.INTERNAL_SERVER_ERROR
|
|
1064
|
-
);
|
|
1087
|
+
this.logger.error({
|
|
1088
|
+
message: TranslationLoader7.t(this.stackTrace.message, this.localLanguage),
|
|
1089
|
+
title: "TypeError",
|
|
1090
|
+
errorType: this.stackTrace.name,
|
|
1091
|
+
stackTrace: error.stack,
|
|
1092
|
+
httpCodeValue: status6.INTERNAL_SERVER_ERROR
|
|
1093
|
+
});
|
|
1065
1094
|
}
|
|
1066
1095
|
uRIError(error) {
|
|
1067
1096
|
this.stackTrace = this.traceError(error.message, error.name, status6.INTERNAL_SERVER_ERROR);
|
|
1068
|
-
this.logger.error(
|
|
1069
|
-
TranslationLoader7.t(this.stackTrace.message, this.localLanguage),
|
|
1070
|
-
"URIError",
|
|
1071
|
-
this.stackTrace.name,
|
|
1072
|
-
error.stack,
|
|
1073
|
-
status6.INTERNAL_SERVER_ERROR
|
|
1074
|
-
);
|
|
1097
|
+
this.logger.error({
|
|
1098
|
+
message: TranslationLoader7.t(this.stackTrace.message, this.localLanguage),
|
|
1099
|
+
title: "URIError",
|
|
1100
|
+
errorType: this.stackTrace.name,
|
|
1101
|
+
stackTrace: error.stack,
|
|
1102
|
+
httpCodeValue: status6.INTERNAL_SERVER_ERROR
|
|
1103
|
+
});
|
|
1075
1104
|
}
|
|
1076
1105
|
traceError(props, name, status7) {
|
|
1077
1106
|
return new StackTraceError(props, name, status7, true);
|
|
@@ -1080,34 +1109,6 @@ var AssertionErrors = class {
|
|
|
1080
1109
|
|
|
1081
1110
|
// src/domains/constants/codeError.constant.ts
|
|
1082
1111
|
var CCodeError = {
|
|
1083
|
-
CERT_NOT_YET_VALID: "CERT_NOT_YET_VALID",
|
|
1084
|
-
CERT_HAS_EXPIRED: "CERT_HAS_EXPIRED",
|
|
1085
|
-
CRL_NOT_YET_VALID: "CRL_NOT_YET_VALID",
|
|
1086
|
-
CRL_HAS_EXPIRED: "CRL_HAS_EXPIRED",
|
|
1087
|
-
CERT_REVOKED: "CERT_REVOKED",
|
|
1088
|
-
UNABLE_TO_GET_ISSUER_CERT: "UNABLE_TO_GET_ISSUER_CERT",
|
|
1089
|
-
UNABLE_TO_GET_ISSUER_CERT_LOCALLY: "UNABLE_TO_GET_ISSUER_CERT_LOCALLY",
|
|
1090
|
-
DEPTH_ZERO_SELF_SIGNED_CERT: "DEPTH_ZERO_SELF_SIGNED_CERT",
|
|
1091
|
-
SELF_SIGNED_CERT_IN_CHAIN: "SELF_SIGNED_CERT_IN_CHAIN",
|
|
1092
|
-
CERT_CHAIN_TOO_LONG: "CERT_CHAIN_TOO_LONG",
|
|
1093
|
-
UNABLE_TO_GET_CRL: "UNABLE_TO_GET_CRL",
|
|
1094
|
-
UNABLE_TO_VERIFY_LEAF_SIGNATURE: "UNABLE_TO_VERIFY_LEAF_SIGNATURE",
|
|
1095
|
-
CERT_UNTRUSTED: "CERT_UNTRUSTED",
|
|
1096
|
-
INVALID_CA: "INVALID_CA",
|
|
1097
|
-
PATH_LENGTH_EXCEEDED: "PATH_LENGTH_EXCEEDED",
|
|
1098
|
-
HOSTNAME_MISMATCH: "HOSTNAME_MISMATCH",
|
|
1099
|
-
INVALID_PURPOSE: "INVALID_PURPOSE",
|
|
1100
|
-
CERT_REJECTED: "CERT_REJECTED",
|
|
1101
|
-
CERT_SIGNATURE_FAILURE: "CERT_SIGNATURE_FAILURE",
|
|
1102
|
-
CRL_SIGNATURE_FAILURE: "CRL_SIGNATURE_FAILURE",
|
|
1103
|
-
ERROR_IN_CERT_NOT_BEFORE_FIELD: "ERROR_IN_CERT_NOT_BEFORE_FIELD",
|
|
1104
|
-
ERROR_IN_CERT_NOT_AFTER_FIELD: "ERROR_IN_CERT_NOT_AFTER_FIELD",
|
|
1105
|
-
ERROR_IN_CRL_LAST_UPDATE_FIELD: "ERROR_IN_CRL_LAST_UPDATE_FIELD",
|
|
1106
|
-
ERROR_IN_CRL_NEXT_UPDATE_FIELD: "ERROR_IN_CRL_NEXT_UPDATE_FIELD",
|
|
1107
|
-
UNABLE_TO_DECRYPT_CERT_SIGNATURE: "UNABLE_TO_DECRYPT_CERT_SIGNATURE",
|
|
1108
|
-
UNABLE_TO_DECRYPT_CRL_SIGNATURE: "UNABLE_TO_DECRYPT_CRL_SIGNATURE",
|
|
1109
|
-
UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY: "UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY",
|
|
1110
|
-
OUT_OF_MEM: "OUT_OF_MEM",
|
|
1111
1112
|
ABORT_ERR: "ABORT_ERR",
|
|
1112
1113
|
ERR_ACCESS_DENIED: "ERR_ACCESS_DENIED",
|
|
1113
1114
|
ERR_AMBIGUOUS_ARGUMENT: "ERR_AMBIGUOUS_ARGUMENT",
|
|
@@ -1178,7 +1179,343 @@ var CCodeError = {
|
|
|
1178
1179
|
ERR_ENCODING_INVALID_ENCODED_DATA: "ERR_ENCODING_INVALID_ENCODED_DATA",
|
|
1179
1180
|
ERR_ENCODING_NOT_SUPPORTED: "ERR_ENCODING_NOT_SUPPORTED",
|
|
1180
1181
|
ERR_EVAL_ESM_CANNOT_PRINT: "ERR_EVAL_ESM_CANNOT_PRINT",
|
|
1181
|
-
ERR_EVENT_RECURSION: "ERR_EVENT_RECURSION"
|
|
1182
|
+
ERR_EVENT_RECURSION: "ERR_EVENT_RECURSION",
|
|
1183
|
+
ERR_EXECUTION_ENVIRONMENT_NOT_AVAILABLE: "ERR_EXECUTION_ENVIRONMENT_NOT_AVAILABLE",
|
|
1184
|
+
ERR_FALSY_VALUE_REJECTION: "ERR_FALSY_VALUE_REJECTION",
|
|
1185
|
+
ERR_FEATURE_UNAVAILABLE_ON_PLATFORM: "ERR_FEATURE_UNAVAILABLE_ON_PLATFORM",
|
|
1186
|
+
ERR_FS_CP_DIR_TO_NON_DIR: "ERR_FS_CP_DIR_TO_NON_DIR",
|
|
1187
|
+
ERR_FS_CP_EEXIST: "ERR_FS_CP_EEXIST",
|
|
1188
|
+
ERR_FS_CP_EINVAL: "ERR_FS_CP_EINVAL",
|
|
1189
|
+
ERR_FS_CP_FIFO_PIPE: "ERR_FS_CP_FIFO_PIPE",
|
|
1190
|
+
ERR_FS_CP_NON_DIR_TO_DIR: "ERR_FS_CP_NON_DIR_TO_DIR",
|
|
1191
|
+
ERR_FS_CP_SOCKET: "ERR_FS_CP_SOCKET",
|
|
1192
|
+
ERR_FS_CP_SYMLINK_TO_SUBDIRECTORY: "ERR_FS_CP_SYMLINK_TO_SUBDIRECTORY",
|
|
1193
|
+
ERR_FS_CP_UNKNOWN: "ERR_FS_CP_UNKNOWN",
|
|
1194
|
+
ERR_FS_EISDIR: "ERR_FS_EISDIR",
|
|
1195
|
+
ERR_FS_FILE_TOO_LARGE: "ERR_FS_FILE_TOO_LARGE",
|
|
1196
|
+
ERR_HTTP2_ALTSVC_INVALID_ORIGIN: "ERR_HTTP2_ALTSVC_INVALID_ORIGIN",
|
|
1197
|
+
ERR_HTTP2_ALTSVC_LENGTH: "ERR_HTTP2_ALTSVC_LENGTH",
|
|
1198
|
+
ERR_HTTP2_CONNECT_AUTHORITY: "ERR_HTTP2_CONNECT_AUTHORITY",
|
|
1199
|
+
ERR_HTTP2_CONNECT_PATH: "ERR_HTTP2_CONNECT_PATH",
|
|
1200
|
+
ERR_HTTP2_CONNECT_SCHEME: "ERR_HTTP2_CONNECT_SCHEME",
|
|
1201
|
+
ERR_HTTP2_ERROR: "ERR_HTTP2_ERROR",
|
|
1202
|
+
ERR_HTTP2_GOAWAY_SESSION: "ERR_HTTP2_GOAWAY_SESSION",
|
|
1203
|
+
ERR_HTTP2_HEADERS_AFTER_RESPOND: "ERR_HTTP2_HEADERS_AFTER_RESPOND",
|
|
1204
|
+
ERR_HTTP2_HEADERS_SENT: "ERR_HTTP2_HEADERS_SENT",
|
|
1205
|
+
ERR_HTTP2_HEADER_SINGLE_VALUE: "ERR_HTTP2_HEADER_SINGLE_VALUE",
|
|
1206
|
+
ERR_HTTP2_INFO_STATUS_NOT_ALLOWED: "ERR_HTTP2_INFO_STATUS_NOT_ALLOWED",
|
|
1207
|
+
ERR_HTTP2_INVALID_CONNECTION_HEADERS: "ERR_HTTP2_INVALID_CONNECTION_HEADERS",
|
|
1208
|
+
ERR_HTTP2_INVALID_HEADER_VALUE: "ERR_HTTP2_INVALID_HEADER_VALUE",
|
|
1209
|
+
ERR_HTTP2_INVALID_INFO_STATUS: "ERR_HTTP2_INVALID_INFO_STATUS",
|
|
1210
|
+
ERR_HTTP2_INVALID_ORIGIN: "ERR_HTTP2_INVALID_ORIGIN",
|
|
1211
|
+
ERR_HTTP2_INVALID_PACKED_SETTINGS_LENGTH: "ERR_HTTP2_INVALID_PACKED_SETTINGS_LENGTH",
|
|
1212
|
+
ERR_HTTP2_INVALID_PSEUDOHEADER: "ERR_HTTP2_INVALID_PSEUDOHEADER",
|
|
1213
|
+
ERR_HTTP2_INVALID_SESSION: "ERR_HTTP2_INVALID_SESSION",
|
|
1214
|
+
ERR_HTTP2_INVALID_SETTING_VALUE: "ERR_HTTP2_INVALID_SETTING_VALUE",
|
|
1215
|
+
ERR_HTTP2_INVALID_STREAM: "ERR_HTTP2_INVALID_STREAM",
|
|
1216
|
+
ERR_HTTP2_MAX_PENDING_SETTINGS_ACK: "ERR_HTTP2_MAX_PENDING_SETTINGS_ACK",
|
|
1217
|
+
ERR_HTTP2_NESTED_PUSH: "ERR_HTTP2_NESTED_PUSH",
|
|
1218
|
+
ERR_HTTP2_NO_MEM: "ERR_HTTP2_NO_MEM",
|
|
1219
|
+
ERR_HTTP2_NO_SOCKET_MANIPULATION: "ERR_HTTP2_NO_SOCKET_MANIPULATION",
|
|
1220
|
+
ERR_HTTP2_PING_LENGTH: "ERR_HTTP2_PING_LENGTH",
|
|
1221
|
+
ERR_HTTP2_PSEUDOHEADER_NOT_ALLOWED: "ERR_HTTP2_PSEUDOHEADER_NOT_ALLOWED",
|
|
1222
|
+
ERR_HTTP2_PUSH_DISABLED: "ERR_HTTP2_PUSH_DISABLED",
|
|
1223
|
+
ERR_HTTP2_SEND_FILE: "ERR_HTTP2_SEND_FILE",
|
|
1224
|
+
ERR_HTTP2_SEND_FILE_NOSEEK: "ERR_HTTP2_SEND_FILE_NOSEEK",
|
|
1225
|
+
ERR_HTTP2_SESSION_ERROR: "ERR_HTTP2_SESSION_ERROR",
|
|
1226
|
+
ERR_HTTP2_SETTINGS_CANCEL: "ERR_HTTP2_SETTINGS_CANCEL",
|
|
1227
|
+
ERR_HTTP2_SOCKET_BOUND: "ERR_HTTP2_SOCKET_BOUND",
|
|
1228
|
+
ERR_HTTP2_SOCKET_UNBOUND: "ERR_HTTP2_SOCKET_UNBOUND",
|
|
1229
|
+
ERR_HTTP2_STATUS_101: "ERR_HTTP2_STATUS_101",
|
|
1230
|
+
ERR_HTTP2_STATUS_INVALID: "ERR_HTTP2_STATUS_INVALID",
|
|
1231
|
+
ERR_HTTP2_STREAM_CANCEL: "ERR_HTTP2_STREAM_CANCEL",
|
|
1232
|
+
ERR_HTTP2_STREAM_ERROR: "ERR_HTTP2_STREAM_ERROR",
|
|
1233
|
+
ERR_HTTP2_STREAM_SELF_DEPENDENCY: "ERR_HTTP2_STREAM_SELF_DEPENDENCY",
|
|
1234
|
+
ERR_HTTP2_TOO_MANY_CUSTOM_SETTINGS: "ERR_HTTP2_TOO_MANY_CUSTOM_SETTINGS",
|
|
1235
|
+
ERR_HTTP_BODY_NOT_ALLOWED: "ERR_HTTP_BODY_NOT_ALLOWED",
|
|
1236
|
+
ERR_HTTP_CONTENT_LENGTH_MISMATCH: "ERR_HTTP_CONTENT_LENGTH_MISMATCH",
|
|
1237
|
+
ERR_HTTP_HEADERS_SENT: "ERR_HTTP_HEADERS_SENT",
|
|
1238
|
+
ERR_HTTP_INVALID_HEADER_VALUE: "ERR_HTTP_INVALID_HEADER_VALUE",
|
|
1239
|
+
ERR_HTTP_INVALID_STATUS_CODE: "ERR_HTTP_INVALID_STATUS_CODE",
|
|
1240
|
+
ERR_HTTP_REQUEST_TIMEOUT: "ERR_HTTP_REQUEST_TIMEOUT",
|
|
1241
|
+
ERR_HTTP_SOCKET_ASSIGNED: "ERR_HTTP_SOCKET_ASSIGNED",
|
|
1242
|
+
ERR_HTTP_SOCKET_ENCODING: "ERR_HTTP_SOCKET_ENCODING",
|
|
1243
|
+
ERR_HTTP_TRAILER_INVALID: "ERR_HTTP_TRAILER_INVALID",
|
|
1244
|
+
ERR_ILLEGAL_CONSTRUCTOR: "ERR_ILLEGAL_CONSTRUCTOR",
|
|
1245
|
+
ERR_IMPORT_ATTRIBUTE_MISSING: "ERR_IMPORT_ATTRIBUTE_MISSING",
|
|
1246
|
+
ERR_IMPORT_ATTRIBUTE_TYPE_INCOMPATIBLE: "ERR_IMPORT_ATTRIBUTE_TYPE_INCOMPATIBLE",
|
|
1247
|
+
ERR_IMPORT_ATTRIBUTE_UNSUPPORTED: "ERR_IMPORT_ATTRIBUTE_UNSUPPORTED",
|
|
1248
|
+
ERR_INCOMPATIBLE_OPTION_PAIR: "ERR_INCOMPATIBLE_OPTION_PAIR",
|
|
1249
|
+
ERR_INPUT_TYPE_NOT_ALLOWED: "ERR_INPUT_TYPE_NOT_ALLOWED",
|
|
1250
|
+
ERR_INSPECTOR_ALREADY_ACTIVATED: "ERR_INSPECTOR_ALREADY_ACTIVATED",
|
|
1251
|
+
ERR_INSPECTOR_ALREADY_CONNECTED: "ERR_INSPECTOR_ALREADY_CONNECTED",
|
|
1252
|
+
ERR_INSPECTOR_CLOSED: "ERR_INSPECTOR_CLOSED",
|
|
1253
|
+
ERR_INSPECTOR_COMMAND: "ERR_INSPECTOR_COMMAND",
|
|
1254
|
+
ERR_INSPECTOR_NOT_ACTIVE: "ERR_INSPECTOR_NOT_ACTIVE",
|
|
1255
|
+
ERR_INSPECTOR_NOT_CONNECTED: "ERR_INSPECTOR_NOT_CONNECTED",
|
|
1256
|
+
ERR_INSPECTOR_NOT_WORKER: "ERR_INSPECTOR_NOT_WORKER",
|
|
1257
|
+
ERR_INTERNAL_ASSERTION: "ERR_INTERNAL_ASSERTION",
|
|
1258
|
+
ERR_INVALID_ADDRESS: "ERR_INVALID_ADDRESS",
|
|
1259
|
+
ERR_INVALID_ADDRESS_FAMILY: "ERR_INVALID_ADDRESS_FAMILY",
|
|
1260
|
+
ERR_INVALID_ARG_TYPE: "ERR_INVALID_ARG_TYPE",
|
|
1261
|
+
ERR_INVALID_ARG_VALUE: "ERR_INVALID_ARG_VALUE",
|
|
1262
|
+
ERR_INVALID_ASYNC_ID: "ERR_INVALID_ASYNC_ID",
|
|
1263
|
+
ERR_INVALID_BUFFER_SIZE: "ERR_INVALID_BUFFER_SIZE",
|
|
1264
|
+
ERR_INVALID_CHAR: "ERR_INVALID_CHAR",
|
|
1265
|
+
ERR_INVALID_CURSOR_POS: "ERR_INVALID_CURSOR_POS",
|
|
1266
|
+
ERR_INVALID_FD: "ERR_INVALID_FD",
|
|
1267
|
+
ERR_INVALID_FD_TYPE: "ERR_INVALID_FD_TYPE",
|
|
1268
|
+
ERR_INVALID_FILE_URL_HOST: "ERR_INVALID_FILE_URL_HOST",
|
|
1269
|
+
ERR_INVALID_FILE_URL_PATH: "ERR_INVALID_FILE_URL_PATH",
|
|
1270
|
+
ERR_INVALID_IP_ADDRESS: "ERR_INVALID_IP_ADDRESS",
|
|
1271
|
+
ERR_INVALID_MIME_SYNTAX: "ERR_INVALID_MIME_SYNTAX",
|
|
1272
|
+
ERR_INVALID_MODULE: "ERR_INVALID_MODULE",
|
|
1273
|
+
ERR_INVALID_MODULE_SPECIFIER: "ERR_INVALID_MODULE_SPECIFIER",
|
|
1274
|
+
ERR_INVALID_OBJECT_DEFINE_PROPERTY: "ERR_INVALID_OBJECT_DEFINE_PROPERTY",
|
|
1275
|
+
ERR_INVALID_PACKAGE_CONFIG: "ERR_INVALID_PACKAGE_CONFIG",
|
|
1276
|
+
ERR_INVALID_PACKAGE_TARGET: "ERR_INVALID_PACKAGE_TARGET",
|
|
1277
|
+
ERR_INVALID_PROTOCOL: "ERR_INVALID_PROTOCOL",
|
|
1278
|
+
ERR_INVALID_REPL_EVAL_CONFIG: "ERR_INVALID_REPL_EVAL_CONFIG",
|
|
1279
|
+
ERR_INVALID_REPL_INPUT: "ERR_INVALID_REPL_INPUT",
|
|
1280
|
+
ERR_INVALID_RETURN_PROPERTY: "ERR_INVALID_RETURN_PROPERTY",
|
|
1281
|
+
ERR_INVALID_RETURN_PROPERTY_VALUE: "ERR_INVALID_RETURN_PROPERTY_VALUE",
|
|
1282
|
+
ERR_INVALID_RETURN_VALUE: "ERR_INVALID_RETURN_VALUE",
|
|
1283
|
+
ERR_INVALID_STATE: "ERR_INVALID_STATE",
|
|
1284
|
+
ERR_INVALID_SYNC_FORK_INPUT: "ERR_INVALID_SYNC_FORK_INPUT",
|
|
1285
|
+
ERR_INVALID_THIS: "ERR_INVALID_THIS",
|
|
1286
|
+
ERR_INVALID_TUPLE: "ERR_INVALID_TUPLE",
|
|
1287
|
+
ERR_INVALID_TYPESCRIPT_SYNTAX: "ERR_INVALID_TYPESCRIPT_SYNTAX",
|
|
1288
|
+
ERR_INVALID_URI: "ERR_INVALID_URI",
|
|
1289
|
+
ERR_INVALID_URL: "ERR_INVALID_URL",
|
|
1290
|
+
ERR_INVALID_URL_PATTERN: "ERR_INVALID_URL_PATTERN",
|
|
1291
|
+
ERR_INVALID_URL_SCHEME: "ERR_INVALID_URL_SCHEME",
|
|
1292
|
+
ERR_IPC_CHANNEL_CLOSED: "ERR_IPC_CHANNEL_CLOSED",
|
|
1293
|
+
ERR_IPC_DISCONNECTED: "ERR_IPC_DISCONNECTED",
|
|
1294
|
+
ERR_IPC_ONE_PIPE: "ERR_IPC_ONE_PIPE",
|
|
1295
|
+
ERR_IPC_SYNC_FORK: "ERR_IPC_SYNC_FORK",
|
|
1296
|
+
ERR_IP_BLOCKED: "ERR_IP_BLOCKED",
|
|
1297
|
+
ERR_LOADER_CHAIN_INCOMPLETE: "ERR_LOADER_CHAIN_INCOMPLETE",
|
|
1298
|
+
ERR_LOAD_SQLITE_EXTENSION: "ERR_LOAD_SQLITE_EXTENSION",
|
|
1299
|
+
ERR_MEMORY_ALLOCATION_FAILED: "ERR_MEMORY_ALLOCATION_FAILED",
|
|
1300
|
+
ERR_MESSAGE_TARGET_CONTEXT_UNAVAILABLE: "ERR_MESSAGE_TARGET_CONTEXT_UNAVAILABLE",
|
|
1301
|
+
ERR_METHOD_NOT_IMPLEMENTED: "ERR_METHOD_NOT_IMPLEMENTED",
|
|
1302
|
+
ERR_MISSING_ARGS: "ERR_MISSING_ARGS",
|
|
1303
|
+
ERR_MISSING_PASSPHRASE: "ERR_MISSING_PASSPHRASE",
|
|
1304
|
+
ERR_MISSING_PLATFORM_FOR_WORKER: "ERR_MISSING_PLATFORM_FOR_WORKER",
|
|
1305
|
+
ERR_MODULE_NOT_FOUND: "ERR_MODULE_NOT_FOUND",
|
|
1306
|
+
ERR_MULTIPLE_CALLBACK: "ERR_MULTIPLE_CALLBACK",
|
|
1307
|
+
ERR_NAPI_CONS_FUNCTION: "ERR_NAPI_CONS_FUNCTION",
|
|
1308
|
+
ERR_NAPI_INVALID_DATAVIEW_ARGS: "ERR_NAPI_INVALID_DATAVIEW_ARGS",
|
|
1309
|
+
ERR_NAPI_INVALID_TYPEDARRAY_ALIGNMENT: "ERR_NAPI_INVALID_TYPEDARRAY_ALIGNMENT",
|
|
1310
|
+
ERR_NAPI_INVALID_TYPEDARRAY_LENGTH: "ERR_NAPI_INVALID_TYPEDARRAY_LENGTH",
|
|
1311
|
+
ERR_NAPI_TSFN_CALL_JS: "ERR_NAPI_TSFN_CALL_JS",
|
|
1312
|
+
ERR_NAPI_TSFN_GET_UNDEFINED: "ERR_NAPI_TSFN_GET_UNDEFINED",
|
|
1313
|
+
ERR_NON_CONTEXT_AWARE_DISABLED: "ERR_NON_CONTEXT_AWARE_DISABLED",
|
|
1314
|
+
ERR_NOT_BUILDING_SNAPSHOT: "ERR_NOT_BUILDING_SNAPSHOT",
|
|
1315
|
+
ERR_NOT_IN_SINGLE_EXECUTABLE_APPLICATION: "ERR_NOT_IN_SINGLE_EXECUTABLE_APPLICATION",
|
|
1316
|
+
ERR_NOT_SUPPORTED_IN_SNAPSHOT: "ERR_NOT_SUPPORTED_IN_SNAPSHOT",
|
|
1317
|
+
ERR_NO_CRYPTO: "ERR_NO_CRYPTO",
|
|
1318
|
+
ERR_NO_ICU: "ERR_NO_ICU",
|
|
1319
|
+
ERR_NO_TYPESCRIPT: "ERR_NO_TYPESCRIPT",
|
|
1320
|
+
ERR_OPERATION_FAILED: "ERR_OPERATION_FAILED",
|
|
1321
|
+
ERR_OPTIONS_BEFORE_BOOTSTRAPPING: "ERR_OPTIONS_BEFORE_BOOTSTRAPPING",
|
|
1322
|
+
ERR_OUT_OF_RANGE: "ERR_OUT_OF_RANGE",
|
|
1323
|
+
ERR_PACKAGE_IMPORT_NOT_DEFINED: "ERR_PACKAGE_IMPORT_NOT_DEFINED",
|
|
1324
|
+
ERR_PACKAGE_PATH_NOT_EXPORTED: "ERR_PACKAGE_PATH_NOT_EXPORTED",
|
|
1325
|
+
ERR_PARSE_ARGS_INVALID_OPTION_VALUE: "ERR_PARSE_ARGS_INVALID_OPTION_VALUE",
|
|
1326
|
+
ERR_PARSE_ARGS_UNEXPECTED_POSITIONAL: "ERR_PARSE_ARGS_UNEXPECTED_POSITIONAL",
|
|
1327
|
+
ERR_PARSE_ARGS_UNKNOWN_OPTION: "ERR_PARSE_ARGS_UNKNOWN_OPTION",
|
|
1328
|
+
ERR_PERFORMANCE_INVALID_TIMESTAMP: "ERR_PERFORMANCE_INVALID_TIMESTAMP",
|
|
1329
|
+
ERR_PERFORMANCE_MEASURE_INVALID_OPTIONS: "ERR_PERFORMANCE_MEASURE_INVALID_OPTIONS",
|
|
1330
|
+
ERR_PROTO_ACCESS: "ERR_PROTO_ACCESS",
|
|
1331
|
+
ERR_QUIC_APPLICATION_ERROR: "ERR_QUIC_APPLICATION_ERROR",
|
|
1332
|
+
ERR_QUIC_CONNECTION_FAILED: "ERR_QUIC_CONNECTION_FAILED",
|
|
1333
|
+
ERR_QUIC_ENDPOINT_CLOSED: "ERR_QUIC_ENDPOINT_CLOSED",
|
|
1334
|
+
ERR_QUIC_OPEN_STREAM_FAILED: "ERR_QUIC_OPEN_STREAM_FAILED",
|
|
1335
|
+
ERR_QUIC_TRANSPORT_ERROR: "ERR_QUIC_TRANSPORT_ERROR",
|
|
1336
|
+
ERR_QUIC_VERSION_NEGOTIATION_ERROR: "ERR_QUIC_VERSION_NEGOTIATION_ERROR",
|
|
1337
|
+
ERR_REQUIRE_ASYNC_MODULE: "ERR_REQUIRE_ASYNC_MODULE",
|
|
1338
|
+
ERR_REQUIRE_CYCLE_MODULE: "ERR_REQUIRE_CYCLE_MODULE",
|
|
1339
|
+
ERR_SCRIPT_EXECUTION_INTERRUPTED: "ERR_SCRIPT_EXECUTION_INTERRUPTED",
|
|
1340
|
+
ERR_SCRIPT_EXECUTION_TIMEOUT: "ERR_SCRIPT_EXECUTION_TIMEOUT",
|
|
1341
|
+
ERR_SERVER_ALREADY_LISTEN: "ERR_SERVER_ALREADY_LISTEN",
|
|
1342
|
+
ERR_SERVER_NOT_RUNNING: "ERR_SERVER_NOT_RUNNING",
|
|
1343
|
+
ERR_SINGLE_EXECUTABLE_APPLICATION_ASSET_NOT_FOUND: "ERR_SINGLE_EXECUTABLE_APPLICATION_ASSET_NOT_FOUND",
|
|
1344
|
+
ERR_SOCKET_ALREADY_BOUND: "ERR_SOCKET_ALREADY_BOUND",
|
|
1345
|
+
ERR_SOCKET_BAD_BUFFER_SIZE: "ERR_SOCKET_BAD_BUFFER_SIZE",
|
|
1346
|
+
ERR_SOCKET_BAD_PORT: "ERR_SOCKET_BAD_PORT",
|
|
1347
|
+
ERR_SOCKET_BAD_TYPE: "ERR_SOCKET_BAD_TYPE",
|
|
1348
|
+
ERR_SOCKET_BUFFER_SIZE: "ERR_SOCKET_BUFFER_SIZE",
|
|
1349
|
+
ERR_SOCKET_CLOSED: "ERR_SOCKET_CLOSED",
|
|
1350
|
+
ERR_SOCKET_CLOSED_BEFORE_CONNECTION: "ERR_SOCKET_CLOSED_BEFORE_CONNECTION",
|
|
1351
|
+
ERR_SOCKET_CONNECTION_TIMEOUT: "ERR_SOCKET_CONNECTION_TIMEOUT",
|
|
1352
|
+
ERR_SOCKET_DGRAM_IS_CONNECTED: "ERR_SOCKET_DGRAM_IS_CONNECTED",
|
|
1353
|
+
ERR_SOCKET_DGRAM_NOT_CONNECTED: "ERR_SOCKET_DGRAM_NOT_CONNECTED",
|
|
1354
|
+
ERR_SOCKET_DGRAM_NOT_RUNNING: "ERR_SOCKET_DGRAM_NOT_RUNNING",
|
|
1355
|
+
ERR_SOURCE_MAP_CORRUPT: "ERR_SOURCE_MAP_CORRUPT",
|
|
1356
|
+
ERR_SOURCE_MAP_MISSING_SOURCE: "ERR_SOURCE_MAP_MISSING_SOURCE",
|
|
1357
|
+
ERR_SQLITE_ERROR: "ERR_SQLITE_ERROR",
|
|
1358
|
+
ERR_SRI_PARSE: "ERR_SRI_PARSE",
|
|
1359
|
+
ERR_STREAM_ALREADY_FINISHED: "ERR_STREAM_ALREADY_FINISHED",
|
|
1360
|
+
ERR_STREAM_CANNOT_PIPE: "ERR_STREAM_CANNOT_PIPE",
|
|
1361
|
+
ERR_STREAM_DESTROYED: "ERR_STREAM_DESTROYED",
|
|
1362
|
+
ERR_STREAM_NULL_VALUES: "ERR_STREAM_NULL_VALUES",
|
|
1363
|
+
ERR_STREAM_PREMATURE_CLOSE: "ERR_STREAM_PREMATURE_CLOSE",
|
|
1364
|
+
ERR_STREAM_PUSH_AFTER_EOF: "ERR_STREAM_PUSH_AFTER_EOF",
|
|
1365
|
+
ERR_STREAM_UNABLE_TO_PIPE: "ERR_STREAM_UNABLE_TO_PIPE",
|
|
1366
|
+
ERR_STREAM_UNSHIFT_AFTER_END_EVENT: "ERR_STREAM_UNSHIFT_AFTER_END_EVENT",
|
|
1367
|
+
ERR_STREAM_WRAP: "ERR_STREAM_WRAP",
|
|
1368
|
+
ERR_STREAM_WRITE_AFTER_END: "ERR_STREAM_WRITE_AFTER_END",
|
|
1369
|
+
ERR_STRING_TOO_LONG: "ERR_STRING_TOO_LONG",
|
|
1370
|
+
ERR_SYNTHETIC: "ERR_SYNTHETIC",
|
|
1371
|
+
ERR_SYSTEM_ERROR: "ERR_SYSTEM_ERROR",
|
|
1372
|
+
ERR_TEST_FAILURE: "ERR_TEST_FAILURE",
|
|
1373
|
+
ERR_TLS_ALPN_CALLBACK_INVALID_RESULT: "ERR_TLS_ALPN_CALLBACK_INVALID_RESULT",
|
|
1374
|
+
ERR_TLS_ALPN_CALLBACK_WITH_PROTOCOLS: "ERR_TLS_ALPN_CALLBACK_WITH_PROTOCOLS",
|
|
1375
|
+
ERR_TLS_CERT_ALTNAME_FORMAT: "ERR_TLS_CERT_ALTNAME_FORMAT",
|
|
1376
|
+
ERR_TLS_CERT_ALTNAME_INVALID: "ERR_TLS_CERT_ALTNAME_INVALID",
|
|
1377
|
+
ERR_TLS_DH_PARAM_SIZE: "ERR_TLS_DH_PARAM_SIZE",
|
|
1378
|
+
ERR_TLS_HANDSHAKE_TIMEOUT: "ERR_TLS_HANDSHAKE_TIMEOUT",
|
|
1379
|
+
ERR_TLS_INVALID_CONTEXT: "ERR_TLS_INVALID_CONTEXT",
|
|
1380
|
+
ERR_TLS_INVALID_PROTOCOL_METHOD: "ERR_TLS_INVALID_PROTOCOL_METHOD",
|
|
1381
|
+
ERR_TLS_INVALID_PROTOCOL_VERSION: "ERR_TLS_INVALID_PROTOCOL_VERSION",
|
|
1382
|
+
ERR_TLS_INVALID_STATE: "ERR_TLS_INVALID_STATE",
|
|
1383
|
+
ERR_TLS_PROTOCOL_VERSION_CONFLICT: "ERR_TLS_PROTOCOL_VERSION_CONFLICT",
|
|
1384
|
+
ERR_TLS_PSK_SET_IDENTITY_HINT_FAILED: "ERR_TLS_PSK_SET_IDENTITY_HINT_FAILED",
|
|
1385
|
+
ERR_TLS_RENEGOTIATION_DISABLED: "ERR_TLS_RENEGOTIATION_DISABLED",
|
|
1386
|
+
ERR_TLS_REQUIRED_SERVER_NAME: "ERR_TLS_REQUIRED_SERVER_NAME",
|
|
1387
|
+
ERR_TLS_SESSION_ATTACK: "ERR_TLS_SESSION_ATTACK",
|
|
1388
|
+
ERR_TLS_SNI_FROM_SERVER: "ERR_TLS_SNI_FROM_SERVER",
|
|
1389
|
+
ERR_TRACE_EVENTS_CATEGORY_REQUIRED: "ERR_TRACE_EVENTS_CATEGORY_REQUIRED",
|
|
1390
|
+
ERR_TRACE_EVENTS_UNAVAILABLE: "ERR_TRACE_EVENTS_UNAVAILABLE",
|
|
1391
|
+
ERR_TRANSFORM_ALREADY_TRANSFORMING: "ERR_TRANSFORM_ALREADY_TRANSFORMING",
|
|
1392
|
+
ERR_TRANSFORM_WITH_LENGTH_0: "ERR_TRANSFORM_WITH_LENGTH_0",
|
|
1393
|
+
ERR_TTY_INIT_FAILED: "ERR_TTY_INIT_FAILED",
|
|
1394
|
+
ERR_UNAVAILABLE_DURING_EXIT: "ERR_UNAVAILABLE_DURING_EXIT",
|
|
1395
|
+
ERR_UNCAUGHT_EXCEPTION_CAPTURE_ALREADY_SET: "ERR_UNCAUGHT_EXCEPTION_CAPTURE_ALREADY_SET",
|
|
1396
|
+
ERR_UNESCAPED_CHARACTERS: "ERR_UNESCAPED_CHARACTERS",
|
|
1397
|
+
ERR_UNHANDLED_ERROR: "ERR_UNHANDLED_ERROR",
|
|
1398
|
+
ERR_UNKNOWN_BUILTIN_MODULE: "ERR_UNKNOWN_BUILTIN_MODULE",
|
|
1399
|
+
ERR_UNKNOWN_CREDENTIAL: "ERR_UNKNOWN_CREDENTIAL",
|
|
1400
|
+
ERR_UNKNOWN_ENCODING: "ERR_UNKNOWN_ENCODING",
|
|
1401
|
+
ERR_UNKNOWN_FILE_EXTENSION: "ERR_UNKNOWN_FILE_EXTENSION",
|
|
1402
|
+
ERR_UNKNOWN_MODULE_FORMAT: "ERR_UNKNOWN_MODULE_FORMAT",
|
|
1403
|
+
ERR_UNKNOWN_SIGNAL: "ERR_UNKNOWN_SIGNAL",
|
|
1404
|
+
ERR_UNSUPPORTED_DIR_IMPORT: "ERR_UNSUPPORTED_DIR_IMPORT",
|
|
1405
|
+
ERR_UNSUPPORTED_ESM_URL_SCHEME: "ERR_UNSUPPORTED_ESM_URL_SCHEME",
|
|
1406
|
+
ERR_UNSUPPORTED_NODE_MODULES_TYPE_STRIPPING: "ERR_UNSUPPORTED_NODE_MODULES_TYPE_STRIPPING",
|
|
1407
|
+
ERR_UNSUPPORTED_RESOLVE_REQUEST: "ERR_UNSUPPORTED_RESOLVE_REQUEST",
|
|
1408
|
+
ERR_UNSUPPORTED_TYPESCRIPT_SYNTAX: "ERR_UNSUPPORTED_TYPESCRIPT_SYNTAX",
|
|
1409
|
+
ERR_USE_AFTER_CLOSE: "ERR_USE_AFTER_CLOSE",
|
|
1410
|
+
ERR_VALID_PERFORMANCE_ENTRY_TYPE: "ERR_VALID_PERFORMANCE_ENTRY_TYPE",
|
|
1411
|
+
ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING: "ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING",
|
|
1412
|
+
ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING_FLAG: "ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING_FLAG",
|
|
1413
|
+
ERR_VM_MODULE_ALREADY_LINKED: "ERR_VM_MODULE_ALREADY_LINKED",
|
|
1414
|
+
ERR_VM_MODULE_CACHED_DATA_REJECTED: "ERR_VM_MODULE_CACHED_DATA_REJECTED",
|
|
1415
|
+
ERR_VM_MODULE_CANNOT_CREATE_CACHED_DATA: "ERR_VM_MODULE_CANNOT_CREATE_CACHED_DATA",
|
|
1416
|
+
ERR_VM_MODULE_DIFFERENT_CONTEXT: "ERR_VM_MODULE_DIFFERENT_CONTEXT",
|
|
1417
|
+
ERR_VM_MODULE_LINK_FAILURE: "ERR_VM_MODULE_LINK_FAILURE",
|
|
1418
|
+
ERR_VM_MODULE_NOT_MODULE: "ERR_VM_MODULE_NOT_MODULE",
|
|
1419
|
+
ERR_VM_MODULE_STATUS: "ERR_VM_MODULE_STATUS",
|
|
1420
|
+
ERR_WASI_ALREADY_STARTED: "ERR_WASI_ALREADY_STARTED",
|
|
1421
|
+
ERR_WASI_NOT_STARTED: "ERR_WASI_NOT_STARTED",
|
|
1422
|
+
ERR_WEBASSEMBLY_RESPONSE: "ERR_WEBASSEMBLY_RESPONSE",
|
|
1423
|
+
ERR_WORKER_INIT_FAILED: "ERR_WORKER_INIT_FAILED",
|
|
1424
|
+
ERR_WORKER_INVALID_EXEC_ARGV: "ERR_WORKER_INVALID_EXEC_ARGV",
|
|
1425
|
+
ERR_WORKER_MESSAGING_ERRORED: "ERR_WORKER_MESSAGING_ERRORED",
|
|
1426
|
+
ERR_WORKER_MESSAGING_FAILED: "ERR_WORKER_MESSAGING_FAILED",
|
|
1427
|
+
ERR_WORKER_MESSAGING_SAME_THREAD: "ERR_WORKER_MESSAGING_SAME_THREAD",
|
|
1428
|
+
ERR_WORKER_MESSAGING_TIMEOUT: "ERR_WORKER_MESSAGING_TIMEOUT",
|
|
1429
|
+
ERR_WORKER_NOT_RUNNING: "ERR_WORKER_NOT_RUNNING",
|
|
1430
|
+
ERR_WORKER_OUT_OF_MEMORY: "ERR_WORKER_OUT_OF_MEMORY",
|
|
1431
|
+
ERR_WORKER_PATH: "ERR_WORKER_PATH",
|
|
1432
|
+
ERR_WORKER_UNSERIALIZABLE_ERROR: "ERR_WORKER_UNSERIALIZABLE_ERROR",
|
|
1433
|
+
ERR_WORKER_UNSUPPORTED_OPERATION: "ERR_WORKER_UNSUPPORTED_OPERATION",
|
|
1434
|
+
ERR_ZLIB_INITIALIZATION_FAILED: "ERR_ZLIB_INITIALIZATION_FAILED",
|
|
1435
|
+
ERR_ZSTD_INVALID_PARAM: "ERR_ZSTD_INVALID_PARAM",
|
|
1436
|
+
HPE_CHUNK_EXTENSIONS_OVERFLOW: "HPE_CHUNK_EXTENSIONS_OVERFLOW",
|
|
1437
|
+
HPE_UNEXPECTED_CONTENT_LENGTH: "HPE_UNEXPECTED_CONTENT_LENGTH",
|
|
1438
|
+
MODULE_NOT_FOUND: "MODULE_NOT_FOUND",
|
|
1439
|
+
ERR_CANNOT_TRANSFER_OBJECT: "ERR_CANNOT_TRANSFER_OBJECT",
|
|
1440
|
+
ERR_CPU_USAGE: "ERR_CPU_USAGE",
|
|
1441
|
+
ERR_CRYPTO_HASH_DIGEST_NO_UTF16: "ERR_CRYPTO_HASH_DIGEST_NO_UTF16",
|
|
1442
|
+
ERR_CRYPTO_SCRYPT_INVALID_PARAMETER: "ERR_CRYPTO_SCRYPT_INVALID_PARAMETER",
|
|
1443
|
+
ERR_FS_INVALID_SYMLINK_TYPE: "ERR_FS_INVALID_SYMLINK_TYPE",
|
|
1444
|
+
ERR_HTTP2_FRAME_ERROR: "ERR_HTTP2_FRAME_ERROR",
|
|
1445
|
+
ERR_HTTP2_HEADERS_OBJECT: "ERR_HTTP2_HEADERS_OBJECT",
|
|
1446
|
+
ERR_HTTP2_HEADER_REQUIRED: "ERR_HTTP2_HEADER_REQUIRED",
|
|
1447
|
+
ERR_HTTP2_INFO_HEADERS_AFTER_RESPOND: "ERR_HTTP2_INFO_HEADERS_AFTER_RESPOND",
|
|
1448
|
+
ERR_HTTP2_STREAM_CLOSED: "ERR_HTTP2_STREAM_CLOSED",
|
|
1449
|
+
ERR_HTTP_INVALID_CHAR: "ERR_HTTP_INVALID_CHAR",
|
|
1450
|
+
ERR_IMPORT_ASSERTION_TYPE_FAILED: "ERR_IMPORT_ASSERTION_TYPE_FAILED",
|
|
1451
|
+
ERR_IMPORT_ASSERTION_TYPE_MISSING: "ERR_IMPORT_ASSERTION_TYPE_MISSING",
|
|
1452
|
+
ERR_IMPORT_ASSERTION_TYPE_UNSUPPORTED: "ERR_IMPORT_ASSERTION_TYPE_UNSUPPORTED",
|
|
1453
|
+
ERR_INDEX_OUT_OF_RANGE: "ERR_INDEX_OUT_OF_RANGE",
|
|
1454
|
+
ERR_INVALID_OPT_VALUE: "ERR_INVALID_OPT_VALUE",
|
|
1455
|
+
ERR_INVALID_OPT_VALUE_ENCODING: "ERR_INVALID_OPT_VALUE_ENCODING",
|
|
1456
|
+
ERR_INVALID_PERFORMANCE_MARK: "ERR_INVALID_PERFORMANCE_MARK",
|
|
1457
|
+
ERR_INVALID_TRANSFER_OBJECT: "ERR_INVALID_TRANSFER_OBJECT",
|
|
1458
|
+
ERR_MANIFEST_ASSERT_INTEGRITY: "ERR_MANIFEST_ASSERT_INTEGRITY",
|
|
1459
|
+
ERR_MANIFEST_DEPENDENCY_MISSING: "ERR_MANIFEST_DEPENDENCY_MISSING",
|
|
1460
|
+
ERR_MANIFEST_INTEGRITY_MISMATCH: "ERR_MANIFEST_INTEGRITY_MISMATCH",
|
|
1461
|
+
ERR_MANIFEST_INVALID_RESOURCE_FIELD: "ERR_MANIFEST_INVALID_RESOURCE_FIELD",
|
|
1462
|
+
ERR_MANIFEST_INVALID_SPECIFIER: "ERR_MANIFEST_INVALID_SPECIFIER",
|
|
1463
|
+
ERR_MANIFEST_PARSE_POLICY: "ERR_MANIFEST_PARSE_POLICY",
|
|
1464
|
+
ERR_MANIFEST_TDZ: "ERR_MANIFEST_TDZ",
|
|
1465
|
+
ERR_MANIFEST_UNKNOWN_ONERROR: "ERR_MANIFEST_UNKNOWN_ONERROR",
|
|
1466
|
+
ERR_MISSING_MESSAGE_PORT_IN_TRANSFER_LIST: "ERR_MISSING_MESSAGE_PORT_IN_TRANSFER_LIST",
|
|
1467
|
+
ERR_MISSING_TRANSFERABLE_IN_TRANSFER_LIST: "ERR_MISSING_TRANSFERABLE_IN_TRANSFER_LIST",
|
|
1468
|
+
ERR_NAPI_CONS_PROTOTYPE_OBJECT: "ERR_NAPI_CONS_PROTOTYPE_OBJECT",
|
|
1469
|
+
ERR_NAPI_TSFN_START_IDLE_LOOP: "ERR_NAPI_TSFN_START_IDLE_LOOP",
|
|
1470
|
+
ERR_NAPI_TSFN_STOP_IDLE_LOOP: "ERR_NAPI_TSFN_STOP_IDLE_LOOP",
|
|
1471
|
+
ERR_NO_LONGER_SUPPORTED: "ERR_NO_LONGER_SUPPORTED",
|
|
1472
|
+
ERR_OUTOFMEMORY: "ERR_OUTOFMEMORY",
|
|
1473
|
+
ERR_PARSE_HISTORY_DATA: "ERR_PARSE_HISTORY_DATA",
|
|
1474
|
+
ERR_SOCKET_CANNOT_SEND: "ERR_SOCKET_CANNOT_SEND",
|
|
1475
|
+
ERR_STDERR_CLOSE: "ERR_STDERR_CLOSE",
|
|
1476
|
+
ERR_STDOUT_CLOSE: "ERR_STDOUT_CLOSE",
|
|
1477
|
+
ERR_STREAM_READ_NOT_IMPLEMENTED: "ERR_STREAM_READ_NOT_IMPLEMENTED",
|
|
1478
|
+
ERR_TAP_LEXER_ERROR: "ERR_TAP_LEXER_ERROR",
|
|
1479
|
+
ERR_TAP_PARSER_ERROR: "ERR_TAP_PARSER_ERROR",
|
|
1480
|
+
ERR_TAP_VALIDATION_ERROR: "ERR_TAP_VALIDATION_ERROR",
|
|
1481
|
+
ERR_TLS_RENEGOTIATION_FAILED: "ERR_TLS_RENEGOTIATION_FAILED",
|
|
1482
|
+
ERR_TRANSFERRING_EXTERNALIZED_SHAREDARRAYBUFFER: "ERR_TRANSFERRING_EXTERNALIZED_SHAREDARRAYBUFFER",
|
|
1483
|
+
ERR_UNKNOWN_STDIN_TYPE: "ERR_UNKNOWN_STDIN_TYPE",
|
|
1484
|
+
ERR_UNKNOWN_STREAM_TYPE: "ERR_UNKNOWN_STREAM_TYPE",
|
|
1485
|
+
ERR_V8BREAKITERATOR: "ERR_V8BREAKITERATOR",
|
|
1486
|
+
ERR_VALUE_OUT_OF_RANGE: "ERR_VALUE_OUT_OF_RANGE",
|
|
1487
|
+
ERR_VM_MODULE_LINKING_ERRORED: "ERR_VM_MODULE_LINKING_ERRORED",
|
|
1488
|
+
ERR_VM_MODULE_NOT_LINKED: "ERR_VM_MODULE_NOT_LINKED",
|
|
1489
|
+
ERR_WORKER_UNSUPPORTED_EXTENSION: "ERR_WORKER_UNSUPPORTED_EXTENSION",
|
|
1490
|
+
ERR_ZLIB_BINDING_CLOSED: "ERR_ZLIB_BINDING_CLOSED",
|
|
1491
|
+
CERT_NOT_YET_VALID: "CERT_NOT_YET_VALID",
|
|
1492
|
+
CERT_HAS_EXPIRED: "CERT_HAS_EXPIRED",
|
|
1493
|
+
CRL_NOT_YET_VALID: "CRL_NOT_YET_VALID",
|
|
1494
|
+
CRL_HAS_EXPIRED: "CRL_HAS_EXPIRED",
|
|
1495
|
+
CERT_REVOKED: "CERT_REVOKED",
|
|
1496
|
+
UNABLE_TO_GET_ISSUER_CERT: "UNABLE_TO_GET_ISSUER_CERT",
|
|
1497
|
+
UNABLE_TO_GET_ISSUER_CERT_LOCALLY: "UNABLE_TO_GET_ISSUER_CERT_LOCALLY",
|
|
1498
|
+
DEPTH_ZERO_SELF_SIGNED_CERT: "DEPTH_ZERO_SELF_SIGNED_CERT",
|
|
1499
|
+
SELF_SIGNED_CERT_IN_CHAIN: "SELF_SIGNED_CERT_IN_CHAIN",
|
|
1500
|
+
CERT_CHAIN_TOO_LONG: "CERT_CHAIN_TOO_LONG",
|
|
1501
|
+
UNABLE_TO_GET_CRL: "UNABLE_TO_GET_CRL",
|
|
1502
|
+
UNABLE_TO_VERIFY_LEAF_SIGNATURE: "UNABLE_TO_VERIFY_LEAF_SIGNATURE",
|
|
1503
|
+
CERT_UNTRUSTED: "CERT_UNTRUSTED",
|
|
1504
|
+
INVALID_CA: "INVALID_CA",
|
|
1505
|
+
PATH_LENGTH_EXCEEDED: "PATH_LENGTH_EXCEEDED",
|
|
1506
|
+
HOSTNAME_MISMATCH: "HOSTNAME_MISMATCH",
|
|
1507
|
+
INVALID_PURPOSE: "INVALID_PURPOSE",
|
|
1508
|
+
CERT_REJECTED: "CERT_REJECTED",
|
|
1509
|
+
CERT_SIGNATURE_FAILURE: "CERT_SIGNATURE_FAILURE",
|
|
1510
|
+
CRL_SIGNATURE_FAILURE: "CRL_SIGNATURE_FAILURE",
|
|
1511
|
+
ERROR_IN_CERT_NOT_BEFORE_FIELD: "ERROR_IN_CERT_NOT_BEFORE_FIELD",
|
|
1512
|
+
ERROR_IN_CERT_NOT_AFTER_FIELD: "ERROR_IN_CERT_NOT_AFTER_FIELD",
|
|
1513
|
+
ERROR_IN_CRL_LAST_UPDATE_FIELD: "ERROR_IN_CRL_LAST_UPDATE_FIELD",
|
|
1514
|
+
ERROR_IN_CRL_NEXT_UPDATE_FIELD: "ERROR_IN_CRL_NEXT_UPDATE_FIELD",
|
|
1515
|
+
UNABLE_TO_DECRYPT_CERT_SIGNATURE: "UNABLE_TO_DECRYPT_CERT_SIGNATURE",
|
|
1516
|
+
UNABLE_TO_DECRYPT_CRL_SIGNATURE: "UNABLE_TO_DECRYPT_CRL_SIGNATURE",
|
|
1517
|
+
UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY: "UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY",
|
|
1518
|
+
OUT_OF_MEM: "OUT_OF_MEM"
|
|
1182
1519
|
};
|
|
1183
1520
|
export {
|
|
1184
1521
|
AssertionErrors,
|