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