@idlebox/node-error-codes 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,2562 @@
1
+ /******************************************************************************
2
+ * GENERATED FILE, DO NOT MODIFY
3
+ * 这是生成的文件,千万不要修改
4
+ *
5
+ * @build-script/codegen 0.0.1 - The Simple Code Generater
6
+ * https://github.com/GongT/baobao
7
+ *
8
+ ******************************************************************************/
9
+ export declare enum NodeError {
10
+ /**
11
+ * <p>Used when an operation has been aborted (typically using an <code>AbortController</code>).</p>
12
+ * <p>APIs <em>not</em> using <code>AbortSignal</code>s typically do not raise an error with this code.</p>
13
+ * <p>This code does not use the regular <code>ERR_*</code> convention Node.js errors use in
14
+ * order to be compatible with the web platform's <code>AbortError</code>.</p>
15
+ * <p><a id="ERR_ACCESS_DENIED"></a></p>
16
+ */
17
+ ABORT_ERR = "ABORT_ERR",
18
+ /**
19
+ * <p>A special type of error that is triggered whenever Node.js tries to get access
20
+ * to a resource restricted by the <a href="permissions.html#permission-model">Permission Model</a>.</p>
21
+ * <p><a id="ERR_AMBIGUOUS_ARGUMENT"></a></p>
22
+ */
23
+ ERR_ACCESS_DENIED = "ERR_ACCESS_DENIED",
24
+ /**
25
+ * <p>A function argument is being used in a way that suggests that the function
26
+ * signature may be misunderstood. This is thrown by the <code>node:assert</code> module when
27
+ * the <code>message</code> parameter in <code>assert.throws(block, message)</code> matches the error
28
+ * message thrown by <code>block</code> because that usage suggests that the user believes
29
+ * <code>message</code> is the expected message rather than the message the <code>AssertionError</code>
30
+ * will display if <code>block</code> does not throw.</p>
31
+ * <p><a id="ERR_ARG_NOT_ITERABLE"></a></p>
32
+ */
33
+ ERR_AMBIGUOUS_ARGUMENT = "ERR_AMBIGUOUS_ARGUMENT",
34
+ /**
35
+ * <p>An iterable argument (i.e. a value that works with <code>for...of</code> loops) was
36
+ * required, but not provided to a Node.js API.</p>
37
+ * <p><a id="ERR_ASSERTION"></a></p>
38
+ */
39
+ ERR_ARG_NOT_ITERABLE = "ERR_ARG_NOT_ITERABLE",
40
+ /**
41
+ * <p>A special type of error that can be triggered whenever Node.js detects an
42
+ * exceptional logic violation that should never occur. These are raised typically
43
+ * by the <code>node:assert</code> module.</p>
44
+ * <p><a id="ERR_ASYNC_CALLBACK"></a></p>
45
+ */
46
+ ERR_ASSERTION = "ERR_ASSERTION",
47
+ /**
48
+ * <p>An attempt was made to register something that is not a function as an
49
+ * <code>AsyncHooks</code> callback.</p>
50
+ * <p><a id="ERR_ASYNC_TYPE"></a></p>
51
+ */
52
+ ERR_ASYNC_CALLBACK = "ERR_ASYNC_CALLBACK",
53
+ /**
54
+ * <p>The type of an asynchronous resource was invalid. Users are also able
55
+ * to define their own types if using the public embedder API.</p>
56
+ * <p><a id="ERR_BROTLI_COMPRESSION_FAILED"></a></p>
57
+ */
58
+ ERR_ASYNC_TYPE = "ERR_ASYNC_TYPE",
59
+ /**
60
+ * <p>Data passed to a Brotli stream was not successfully compressed.</p>
61
+ * <p><a id="ERR_BROTLI_INVALID_PARAM"></a></p>
62
+ */
63
+ ERR_BROTLI_COMPRESSION_FAILED = "ERR_BROTLI_COMPRESSION_FAILED",
64
+ /**
65
+ * <p>An invalid parameter key was passed during construction of a Brotli stream.</p>
66
+ * <p><a id="ERR_BUFFER_CONTEXT_NOT_AVAILABLE"></a></p>
67
+ */
68
+ ERR_BROTLI_INVALID_PARAM = "ERR_BROTLI_INVALID_PARAM",
69
+ /**
70
+ * <p>An attempt was made to create a Node.js <code>Buffer</code> instance from addon or embedder
71
+ * code, while in a JS engine Context that is not associated with a Node.js
72
+ * instance. The data passed to the <code>Buffer</code> method will have been released
73
+ * by the time the method returns.</p>
74
+ * <p>When encountering this error, a possible alternative to creating a <code>Buffer</code>
75
+ * instance is to create a normal <code>Uint8Array</code>, which only differs in the
76
+ * prototype of the resulting object. <code>Uint8Array</code>s are generally accepted in all
77
+ * Node.js core APIs where <code>Buffer</code>s are; they are available in all Contexts.</p>
78
+ * <p><a id="ERR_BUFFER_OUT_OF_BOUNDS"></a></p>
79
+ */
80
+ ERR_BUFFER_CONTEXT_NOT_AVAILABLE = "ERR_BUFFER_CONTEXT_NOT_AVAILABLE",
81
+ /**
82
+ * <p>An operation outside the bounds of a <code>Buffer</code> was attempted.</p>
83
+ * <p><a id="ERR_BUFFER_TOO_LARGE"></a></p>
84
+ */
85
+ ERR_BUFFER_OUT_OF_BOUNDS = "ERR_BUFFER_OUT_OF_BOUNDS",
86
+ /**
87
+ * <p>An attempt has been made to create a <code>Buffer</code> larger than the maximum allowed
88
+ * size.</p>
89
+ * <p><a id="ERR_CANNOT_WATCH_SIGINT"></a></p>
90
+ */
91
+ ERR_BUFFER_TOO_LARGE = "ERR_BUFFER_TOO_LARGE",
92
+ /**
93
+ * <p>Node.js was unable to watch for the <code>SIGINT</code> signal.</p>
94
+ * <p><a id="ERR_CHILD_CLOSED_BEFORE_REPLY"></a></p>
95
+ */
96
+ ERR_CANNOT_WATCH_SIGINT = "ERR_CANNOT_WATCH_SIGINT",
97
+ /**
98
+ * <p>A child process was closed before the parent received a reply.</p>
99
+ * <p><a id="ERR_CHILD_PROCESS_IPC_REQUIRED"></a></p>
100
+ */
101
+ ERR_CHILD_CLOSED_BEFORE_REPLY = "ERR_CHILD_CLOSED_BEFORE_REPLY",
102
+ /**
103
+ * <p>Used when a child process is being forked without specifying an IPC channel.</p>
104
+ * <p><a id="ERR_CHILD_PROCESS_STDIO_MAXBUFFER"></a></p>
105
+ */
106
+ ERR_CHILD_PROCESS_IPC_REQUIRED = "ERR_CHILD_PROCESS_IPC_REQUIRED",
107
+ /**
108
+ * <p>Used when the main process is trying to read data from the child process's
109
+ * STDERR/STDOUT, and the data's length is longer than the <code>maxBuffer</code> option.</p>
110
+ * <p><a id="ERR_CLOSED_MESSAGE_PORT"></a></p>
111
+ */
112
+ ERR_CHILD_PROCESS_STDIO_MAXBUFFER = "ERR_CHILD_PROCESS_STDIO_MAXBUFFER",
113
+ /**
114
+ * <p>There was an attempt to use a <code>MessagePort</code> instance in a closed
115
+ * state, usually after <code>.close()</code> has been called.</p>
116
+ * <p><a id="ERR_CONSOLE_WRITABLE_STREAM"></a></p>
117
+ */
118
+ ERR_CLOSED_MESSAGE_PORT = "ERR_CLOSED_MESSAGE_PORT",
119
+ /**
120
+ * <p><code>Console</code> was instantiated without <code>stdout</code> stream, or <code>Console</code> has a
121
+ * non-writable <code>stdout</code> or <code>stderr</code> stream.</p>
122
+ * <p><a id="ERR_CONSTRUCT_CALL_INVALID"></a></p>
123
+ */
124
+ ERR_CONSOLE_WRITABLE_STREAM = "ERR_CONSOLE_WRITABLE_STREAM",
125
+ /**
126
+ * <p>A class constructor was called that is not callable.</p>
127
+ * <p><a id="ERR_CONSTRUCT_CALL_REQUIRED"></a></p>
128
+ */
129
+ ERR_CONSTRUCT_CALL_INVALID = "ERR_CONSTRUCT_CALL_INVALID",
130
+ /**
131
+ * <p>A constructor for a class was called without <code>new</code>.</p>
132
+ * <p><a id="ERR_CONTEXT_NOT_INITIALIZED"></a></p>
133
+ */
134
+ ERR_CONSTRUCT_CALL_REQUIRED = "ERR_CONSTRUCT_CALL_REQUIRED",
135
+ /**
136
+ * <p>The vm context passed into the API is not yet initialized. This could happen
137
+ * when an error occurs (and is caught) during the creation of the
138
+ * context, for example, when the allocation fails or the maximum call stack
139
+ * size is reached when the context is created.</p>
140
+ * <p><a id="ERR_CRYPTO_CUSTOM_ENGINE_NOT_SUPPORTED"></a></p>
141
+ */
142
+ ERR_CONTEXT_NOT_INITIALIZED = "ERR_CONTEXT_NOT_INITIALIZED",
143
+ /**
144
+ * <p>An OpenSSL engine was requested (for example, through the <code>clientCertEngine</code> or
145
+ * <code>privateKeyEngine</code> TLS options) that is not supported by the version of OpenSSL
146
+ * being used, likely due to the compile-time flag <code>OPENSSL_NO_ENGINE</code>.</p>
147
+ * <p><a id="ERR_CRYPTO_ECDH_INVALID_FORMAT"></a></p>
148
+ */
149
+ ERR_CRYPTO_CUSTOM_ENGINE_NOT_SUPPORTED = "ERR_CRYPTO_CUSTOM_ENGINE_NOT_SUPPORTED",
150
+ /**
151
+ * <p>An invalid value for the <code>format</code> argument was passed to the <code>crypto.ECDH()</code>
152
+ * class <code>getPublicKey()</code> method.</p>
153
+ * <p><a id="ERR_CRYPTO_ECDH_INVALID_PUBLIC_KEY"></a></p>
154
+ */
155
+ ERR_CRYPTO_ECDH_INVALID_FORMAT = "ERR_CRYPTO_ECDH_INVALID_FORMAT",
156
+ /**
157
+ * <p>An invalid value for the <code>key</code> argument has been passed to the
158
+ * <code>crypto.ECDH()</code> class <code>computeSecret()</code> method. It means that the public
159
+ * key lies outside of the elliptic curve.</p>
160
+ * <p><a id="ERR_CRYPTO_ENGINE_UNKNOWN"></a></p>
161
+ */
162
+ ERR_CRYPTO_ECDH_INVALID_PUBLIC_KEY = "ERR_CRYPTO_ECDH_INVALID_PUBLIC_KEY",
163
+ /**
164
+ * <p>An invalid crypto engine identifier was passed to
165
+ * <a href="crypto.html#cryptosetengineengine-flags"><code>require('node:crypto').setEngine()</code></a>.</p>
166
+ * <p><a id="ERR_CRYPTO_FIPS_FORCED"></a></p>
167
+ */
168
+ ERR_CRYPTO_ENGINE_UNKNOWN = "ERR_CRYPTO_ENGINE_UNKNOWN",
169
+ /**
170
+ * <p>The <a href="cli.html#--force-fips"><code>--force-fips</code></a> command-line argument was used but there was an attempt
171
+ * to enable or disable FIPS mode in the <code>node:crypto</code> module.</p>
172
+ * <p><a id="ERR_CRYPTO_FIPS_UNAVAILABLE"></a></p>
173
+ */
174
+ ERR_CRYPTO_FIPS_FORCED = "ERR_CRYPTO_FIPS_FORCED",
175
+ /**
176
+ * <p>An attempt was made to enable or disable FIPS mode, but FIPS mode was not
177
+ * available.</p>
178
+ * <p><a id="ERR_CRYPTO_HASH_FINALIZED"></a></p>
179
+ */
180
+ ERR_CRYPTO_FIPS_UNAVAILABLE = "ERR_CRYPTO_FIPS_UNAVAILABLE",
181
+ /**
182
+ * <p><a href="crypto.html#hashdigestencoding"><code>hash.digest()</code></a> was called multiple times. The <code>hash.digest()</code> method must
183
+ * be called no more than one time per instance of a <code>Hash</code> object.</p>
184
+ * <p><a id="ERR_CRYPTO_HASH_UPDATE_FAILED"></a></p>
185
+ */
186
+ ERR_CRYPTO_HASH_FINALIZED = "ERR_CRYPTO_HASH_FINALIZED",
187
+ /**
188
+ * <p><a href="crypto.html#hashupdatedata-inputencoding"><code>hash.update()</code></a> failed for any reason. This should rarely, if ever, happen.</p>
189
+ * <p><a id="ERR_CRYPTO_INCOMPATIBLE_KEY"></a></p>
190
+ */
191
+ ERR_CRYPTO_HASH_UPDATE_FAILED = "ERR_CRYPTO_HASH_UPDATE_FAILED",
192
+ /**
193
+ * <p>The given crypto keys are incompatible with the attempted operation.</p>
194
+ * <p><a id="ERR_CRYPTO_INCOMPATIBLE_KEY_OPTIONS"></a></p>
195
+ */
196
+ ERR_CRYPTO_INCOMPATIBLE_KEY = "ERR_CRYPTO_INCOMPATIBLE_KEY",
197
+ /**
198
+ * <p>The selected public or private key encoding is incompatible with other options.</p>
199
+ * <p><a id="ERR_CRYPTO_INITIALIZATION_FAILED"></a></p>
200
+ */
201
+ ERR_CRYPTO_INCOMPATIBLE_KEY_OPTIONS = "ERR_CRYPTO_INCOMPATIBLE_KEY_OPTIONS",
202
+ /**
203
+ * <p>Initialization of the crypto subsystem failed.</p>
204
+ * <p><a id="ERR_CRYPTO_INVALID_AUTH_TAG"></a></p>
205
+ */
206
+ ERR_CRYPTO_INITIALIZATION_FAILED = "ERR_CRYPTO_INITIALIZATION_FAILED",
207
+ /**
208
+ * <p>An invalid authentication tag was provided.</p>
209
+ * <p><a id="ERR_CRYPTO_INVALID_COUNTER"></a></p>
210
+ */
211
+ ERR_CRYPTO_INVALID_AUTH_TAG = "ERR_CRYPTO_INVALID_AUTH_TAG",
212
+ /**
213
+ * <p>An invalid counter was provided for a counter-mode cipher.</p>
214
+ * <p><a id="ERR_CRYPTO_INVALID_CURVE"></a></p>
215
+ */
216
+ ERR_CRYPTO_INVALID_COUNTER = "ERR_CRYPTO_INVALID_COUNTER",
217
+ /**
218
+ * <p>An invalid elliptic-curve was provided.</p>
219
+ * <p><a id="ERR_CRYPTO_INVALID_DIGEST"></a></p>
220
+ */
221
+ ERR_CRYPTO_INVALID_CURVE = "ERR_CRYPTO_INVALID_CURVE",
222
+ /**
223
+ * <p>An invalid <a href="crypto.html#cryptogethashes">crypto digest algorithm</a> was specified.</p>
224
+ * <p><a id="ERR_CRYPTO_INVALID_IV"></a></p>
225
+ */
226
+ ERR_CRYPTO_INVALID_DIGEST = "ERR_CRYPTO_INVALID_DIGEST",
227
+ /**
228
+ * <p>An invalid initialization vector was provided.</p>
229
+ * <p><a id="ERR_CRYPTO_INVALID_JWK"></a></p>
230
+ */
231
+ ERR_CRYPTO_INVALID_IV = "ERR_CRYPTO_INVALID_IV",
232
+ /**
233
+ * <p>An invalid JSON Web Key was provided.</p>
234
+ * <p><a id="ERR_CRYPTO_INVALID_KEYLEN"></a></p>
235
+ */
236
+ ERR_CRYPTO_INVALID_JWK = "ERR_CRYPTO_INVALID_JWK",
237
+ /**
238
+ * <p>An invalid key length was provided.</p>
239
+ * <p><a id="ERR_CRYPTO_INVALID_KEYPAIR"></a></p>
240
+ */
241
+ ERR_CRYPTO_INVALID_KEYLEN = "ERR_CRYPTO_INVALID_KEYLEN",
242
+ /**
243
+ * <p>An invalid key pair was provided.</p>
244
+ * <p><a id="ERR_CRYPTO_INVALID_KEYTYPE"></a></p>
245
+ */
246
+ ERR_CRYPTO_INVALID_KEYPAIR = "ERR_CRYPTO_INVALID_KEYPAIR",
247
+ /**
248
+ * <p>An invalid key type was provided.</p>
249
+ * <p><a id="ERR_CRYPTO_INVALID_KEY_OBJECT_TYPE"></a></p>
250
+ */
251
+ ERR_CRYPTO_INVALID_KEYTYPE = "ERR_CRYPTO_INVALID_KEYTYPE",
252
+ /**
253
+ * <p>The given crypto key object's type is invalid for the attempted operation.</p>
254
+ * <p><a id="ERR_CRYPTO_INVALID_MESSAGELEN"></a></p>
255
+ */
256
+ ERR_CRYPTO_INVALID_KEY_OBJECT_TYPE = "ERR_CRYPTO_INVALID_KEY_OBJECT_TYPE",
257
+ /**
258
+ * <p>An invalid message length was provided.</p>
259
+ * <p><a id="ERR_CRYPTO_INVALID_SCRYPT_PARAMS"></a></p>
260
+ */
261
+ ERR_CRYPTO_INVALID_MESSAGELEN = "ERR_CRYPTO_INVALID_MESSAGELEN",
262
+ /**
263
+ * <p>One or more <a href="crypto.html#cryptoscryptpassword-salt-keylen-options-callback"><code>crypto.scrypt()</code></a> or <a href="crypto.html#cryptoscryptsyncpassword-salt-keylen-options"><code>crypto.scryptSync()</code></a> parameters are
264
+ * outside their legal range.</p>
265
+ * <p><a id="ERR_CRYPTO_INVALID_STATE"></a></p>
266
+ */
267
+ ERR_CRYPTO_INVALID_SCRYPT_PARAMS = "ERR_CRYPTO_INVALID_SCRYPT_PARAMS",
268
+ /**
269
+ * <p>A crypto method was used on an object that was in an invalid state. For
270
+ * instance, calling <a href="crypto.html#ciphergetauthtag"><code>cipher.getAuthTag()</code></a> before calling <code>cipher.final()</code>.</p>
271
+ * <p><a id="ERR_CRYPTO_INVALID_TAG_LENGTH"></a></p>
272
+ */
273
+ ERR_CRYPTO_INVALID_STATE = "ERR_CRYPTO_INVALID_STATE",
274
+ /**
275
+ * <p>An invalid authentication tag length was provided.</p>
276
+ * <p><a id="ERR_CRYPTO_JOB_INIT_FAILED"></a></p>
277
+ */
278
+ ERR_CRYPTO_INVALID_TAG_LENGTH = "ERR_CRYPTO_INVALID_TAG_LENGTH",
279
+ /**
280
+ * <p>Initialization of an asynchronous crypto operation failed.</p>
281
+ * <p><a id="ERR_CRYPTO_JWK_UNSUPPORTED_CURVE"></a></p>
282
+ */
283
+ ERR_CRYPTO_JOB_INIT_FAILED = "ERR_CRYPTO_JOB_INIT_FAILED",
284
+ /**
285
+ * <p>Key's Elliptic Curve is not registered for use in the
286
+ * <a href="https://www.iana.org/assignments/jose/jose.xhtml#web-key-elliptic-curve">JSON Web Key Elliptic Curve Registry</a>.</p>
287
+ * <p><a id="ERR_CRYPTO_JWK_UNSUPPORTED_KEY_TYPE"></a></p>
288
+ */
289
+ ERR_CRYPTO_JWK_UNSUPPORTED_CURVE = "ERR_CRYPTO_JWK_UNSUPPORTED_CURVE",
290
+ /**
291
+ * <p>Key's Asymmetric Key Type is not registered for use in the
292
+ * <a href="https://www.iana.org/assignments/jose/jose.xhtml#web-key-types">JSON Web Key Types Registry</a>.</p>
293
+ * <p><a id="ERR_CRYPTO_OPERATION_FAILED"></a></p>
294
+ */
295
+ ERR_CRYPTO_JWK_UNSUPPORTED_KEY_TYPE = "ERR_CRYPTO_JWK_UNSUPPORTED_KEY_TYPE",
296
+ /**
297
+ * <p>A crypto operation failed for an otherwise unspecified reason.</p>
298
+ * <p><a id="ERR_CRYPTO_PBKDF2_ERROR"></a></p>
299
+ */
300
+ ERR_CRYPTO_OPERATION_FAILED = "ERR_CRYPTO_OPERATION_FAILED",
301
+ /**
302
+ * <p>The PBKDF2 algorithm failed for unspecified reasons. OpenSSL does not provide
303
+ * more details and therefore neither does Node.js.</p>
304
+ * <p><a id="ERR_CRYPTO_SCRYPT_NOT_SUPPORTED"></a></p>
305
+ */
306
+ ERR_CRYPTO_PBKDF2_ERROR = "ERR_CRYPTO_PBKDF2_ERROR",
307
+ /**
308
+ * <p>Node.js was compiled without <code>scrypt</code> support. Not possible with the official
309
+ * release binaries but can happen with custom builds, including distro builds.</p>
310
+ * <p><a id="ERR_CRYPTO_SIGN_KEY_REQUIRED"></a></p>
311
+ */
312
+ ERR_CRYPTO_SCRYPT_NOT_SUPPORTED = "ERR_CRYPTO_SCRYPT_NOT_SUPPORTED",
313
+ /**
314
+ * <p>A signing <code>key</code> was not provided to the <a href="crypto.html#signsignprivatekey-outputencoding"><code>sign.sign()</code></a> method.</p>
315
+ * <p><a id="ERR_CRYPTO_TIMING_SAFE_EQUAL_LENGTH"></a></p>
316
+ */
317
+ ERR_CRYPTO_SIGN_KEY_REQUIRED = "ERR_CRYPTO_SIGN_KEY_REQUIRED",
318
+ /**
319
+ * <p><a href="crypto.html#cryptotimingsafeequala-b"><code>crypto.timingSafeEqual()</code></a> was called with <code>Buffer</code>, <code>TypedArray</code>, or
320
+ * <code>DataView</code> arguments of different lengths.</p>
321
+ * <p><a id="ERR_CRYPTO_UNKNOWN_CIPHER"></a></p>
322
+ */
323
+ ERR_CRYPTO_TIMING_SAFE_EQUAL_LENGTH = "ERR_CRYPTO_TIMING_SAFE_EQUAL_LENGTH",
324
+ /**
325
+ * <p>An unknown cipher was specified.</p>
326
+ * <p><a id="ERR_CRYPTO_UNKNOWN_DH_GROUP"></a></p>
327
+ */
328
+ ERR_CRYPTO_UNKNOWN_CIPHER = "ERR_CRYPTO_UNKNOWN_CIPHER",
329
+ /**
330
+ * <p>An unknown Diffie-Hellman group name was given. See
331
+ * <a href="crypto.html#cryptogetdiffiehellmangroupname"><code>crypto.getDiffieHellman()</code></a> for a list of valid group names.</p>
332
+ * <p><a id="ERR_CRYPTO_UNSUPPORTED_OPERATION"></a></p>
333
+ */
334
+ ERR_CRYPTO_UNKNOWN_DH_GROUP = "ERR_CRYPTO_UNKNOWN_DH_GROUP",
335
+ /**
336
+ * <p>An attempt to invoke an unsupported crypto operation was made.</p>
337
+ * <p><a id="ERR_DEBUGGER_ERROR"></a></p>
338
+ */
339
+ ERR_CRYPTO_UNSUPPORTED_OPERATION = "ERR_CRYPTO_UNSUPPORTED_OPERATION",
340
+ /**
341
+ * <p>An error occurred with the <a href="debugger.html">debugger</a>.</p>
342
+ * <p><a id="ERR_DEBUGGER_STARTUP_ERROR"></a></p>
343
+ */
344
+ ERR_DEBUGGER_ERROR = "ERR_DEBUGGER_ERROR",
345
+ /**
346
+ * <p>The <a href="debugger.html">debugger</a> timed out waiting for the required host/port to be free.</p>
347
+ * <p><a id="ERR_DIR_CLOSED"></a></p>
348
+ */
349
+ ERR_DEBUGGER_STARTUP_ERROR = "ERR_DEBUGGER_STARTUP_ERROR",
350
+ /**
351
+ * <p>The <a href="fs.html#class-fsdir"><code>fs.Dir</code></a> was previously closed.</p>
352
+ * <p><a id="ERR_DIR_CONCURRENT_OPERATION"></a></p>
353
+ */
354
+ ERR_DIR_CLOSED = "ERR_DIR_CLOSED",
355
+ /**
356
+ * <p>A synchronous read or close call was attempted on an <a href="fs.html#class-fsdir"><code>fs.Dir</code></a> which has
357
+ * ongoing asynchronous operations.</p>
358
+ * <p><a id="ERR_DLOPEN_DISABLED"></a></p>
359
+ */
360
+ ERR_DIR_CONCURRENT_OPERATION = "ERR_DIR_CONCURRENT_OPERATION",
361
+ /**
362
+ * <p>Loading native addons has been disabled using <a href="cli.html#--no-addons"><code>--no-addons</code></a>.</p>
363
+ * <p><a id="ERR_DLOPEN_FAILED"></a></p>
364
+ */
365
+ ERR_DLOPEN_DISABLED = "ERR_DLOPEN_DISABLED",
366
+ /**
367
+ * <p>A call to <code>process.dlopen()</code> failed.</p>
368
+ * <p><a id="ERR_DNS_SET_SERVERS_FAILED"></a></p>
369
+ */
370
+ ERR_DLOPEN_FAILED = "ERR_DLOPEN_FAILED",
371
+ /**
372
+ * <p><code>c-ares</code> failed to set the DNS server.</p>
373
+ * <p><a id="ERR_DOMAIN_CALLBACK_NOT_AVAILABLE"></a></p>
374
+ */
375
+ ERR_DNS_SET_SERVERS_FAILED = "ERR_DNS_SET_SERVERS_FAILED",
376
+ /**
377
+ * <p>The <code>node:domain</code> module was not usable since it could not establish the
378
+ * required error handling hooks, because
379
+ * <a href="process.html#processsetuncaughtexceptioncapturecallbackfn"><code>process.setUncaughtExceptionCaptureCallback()</code></a> had been called at an
380
+ * earlier point in time.</p>
381
+ * <p><a id="ERR_DOMAIN_CANNOT_SET_UNCAUGHT_EXCEPTION_CAPTURE"></a></p>
382
+ */
383
+ ERR_DOMAIN_CALLBACK_NOT_AVAILABLE = "ERR_DOMAIN_CALLBACK_NOT_AVAILABLE",
384
+ /**
385
+ * <p><a href="process.html#processsetuncaughtexceptioncapturecallbackfn"><code>process.setUncaughtExceptionCaptureCallback()</code></a> could not be called
386
+ * because the <code>node:domain</code> module has been loaded at an earlier point in time.</p>
387
+ * <p>The stack trace is extended to include the point in time at which the
388
+ * <code>node:domain</code> module had been loaded.</p>
389
+ * <p><a id="ERR_DUPLICATE_STARTUP_SNAPSHOT_MAIN_FUNCTION"></a></p>
390
+ */
391
+ ERR_DOMAIN_CANNOT_SET_UNCAUGHT_EXCEPTION_CAPTURE = "ERR_DOMAIN_CANNOT_SET_UNCAUGHT_EXCEPTION_CAPTURE",
392
+ /**
393
+ * <p><a href="v8.html#v8startupsnapshotsetdeserializemainfunctioncallback-data"><code>v8.startupSnapshot.setDeserializeMainFunction()</code></a> could not be called
394
+ * because it had already been called before.</p>
395
+ * <p><a id="ERR_ENCODING_INVALID_ENCODED_DATA"></a></p>
396
+ */
397
+ ERR_DUPLICATE_STARTUP_SNAPSHOT_MAIN_FUNCTION = "ERR_DUPLICATE_STARTUP_SNAPSHOT_MAIN_FUNCTION",
398
+ /**
399
+ * <p>Data provided to <code>TextDecoder()</code> API was invalid according to the encoding
400
+ * provided.</p>
401
+ * <p><a id="ERR_ENCODING_NOT_SUPPORTED"></a></p>
402
+ */
403
+ ERR_ENCODING_INVALID_ENCODED_DATA = "ERR_ENCODING_INVALID_ENCODED_DATA",
404
+ /**
405
+ * <p>Encoding provided to <code>TextDecoder()</code> API was not one of the
406
+ * <a href="util.html#whatwg-supported-encodings">WHATWG Supported Encodings</a>.</p>
407
+ * <p><a id="ERR_EVAL_ESM_CANNOT_PRINT"></a></p>
408
+ */
409
+ ERR_ENCODING_NOT_SUPPORTED = "ERR_ENCODING_NOT_SUPPORTED",
410
+ /**
411
+ * <p><code>--print</code> cannot be used with ESM input.</p>
412
+ * <p><a id="ERR_EVENT_RECURSION"></a></p>
413
+ */
414
+ ERR_EVAL_ESM_CANNOT_PRINT = "ERR_EVAL_ESM_CANNOT_PRINT",
415
+ /**
416
+ * <p>Thrown when an attempt is made to recursively dispatch an event on <code>EventTarget</code>.</p>
417
+ * <p><a id="ERR_EXECUTION_ENVIRONMENT_NOT_AVAILABLE"></a></p>
418
+ */
419
+ ERR_EVENT_RECURSION = "ERR_EVENT_RECURSION",
420
+ /**
421
+ * <p>The JS execution context is not associated with a Node.js environment.
422
+ * This may occur when Node.js is used as an embedded library and some hooks
423
+ * for the JS engine are not set up properly.</p>
424
+ * <p><a id="ERR_FALSY_VALUE_REJECTION"></a></p>
425
+ */
426
+ ERR_EXECUTION_ENVIRONMENT_NOT_AVAILABLE = "ERR_EXECUTION_ENVIRONMENT_NOT_AVAILABLE",
427
+ /**
428
+ * <p>A <code>Promise</code> that was callbackified via <code>util.callbackify()</code> was rejected with a
429
+ * falsy value.</p>
430
+ * <p><a id="ERR_FEATURE_UNAVAILABLE_ON_PLATFORM"></a></p>
431
+ */
432
+ ERR_FALSY_VALUE_REJECTION = "ERR_FALSY_VALUE_REJECTION",
433
+ /**
434
+ * <p>Used when a feature that is not available
435
+ * to the current platform which is running Node.js is used.</p>
436
+ * <p><a id="ERR_FS_CP_DIR_TO_NON_DIR"></a></p>
437
+ */
438
+ ERR_FEATURE_UNAVAILABLE_ON_PLATFORM = "ERR_FEATURE_UNAVAILABLE_ON_PLATFORM",
439
+ /**
440
+ * <p>An attempt was made to copy a directory to a non-directory (file, symlink,
441
+ * etc.) using <a href="fs.html#fscpsrc-dest-options-callback"><code>fs.cp()</code></a>.</p>
442
+ * <p><a id="ERR_FS_CP_EEXIST"></a></p>
443
+ */
444
+ ERR_FS_CP_DIR_TO_NON_DIR = "ERR_FS_CP_DIR_TO_NON_DIR",
445
+ /**
446
+ * <p>An attempt was made to copy over a file that already existed with
447
+ * <a href="fs.html#fscpsrc-dest-options-callback"><code>fs.cp()</code></a>, with the <code>force</code> and <code>errorOnExist</code> set to <code>true</code>.</p>
448
+ * <p><a id="ERR_FS_CP_EINVAL"></a></p>
449
+ */
450
+ ERR_FS_CP_EEXIST = "ERR_FS_CP_EEXIST",
451
+ /**
452
+ * <p>When using <a href="fs.html#fscpsrc-dest-options-callback"><code>fs.cp()</code></a>, <code>src</code> or <code>dest</code> pointed to an invalid path.</p>
453
+ * <p><a id="ERR_FS_CP_FIFO_PIPE"></a></p>
454
+ */
455
+ ERR_FS_CP_EINVAL = "ERR_FS_CP_EINVAL",
456
+ /**
457
+ * <p>An attempt was made to copy a named pipe with <a href="fs.html#fscpsrc-dest-options-callback"><code>fs.cp()</code></a>.</p>
458
+ * <p><a id="ERR_FS_CP_NON_DIR_TO_DIR"></a></p>
459
+ */
460
+ ERR_FS_CP_FIFO_PIPE = "ERR_FS_CP_FIFO_PIPE",
461
+ /**
462
+ * <p>An attempt was made to copy a non-directory (file, symlink, etc.) to a directory
463
+ * using <a href="fs.html#fscpsrc-dest-options-callback"><code>fs.cp()</code></a>.</p>
464
+ * <p><a id="ERR_FS_CP_SOCKET"></a></p>
465
+ */
466
+ ERR_FS_CP_NON_DIR_TO_DIR = "ERR_FS_CP_NON_DIR_TO_DIR",
467
+ /**
468
+ * <p>An attempt was made to copy to a socket with <a href="fs.html#fscpsrc-dest-options-callback"><code>fs.cp()</code></a>.</p>
469
+ * <p><a id="ERR_FS_CP_SYMLINK_TO_SUBDIRECTORY"></a></p>
470
+ */
471
+ ERR_FS_CP_SOCKET = "ERR_FS_CP_SOCKET",
472
+ /**
473
+ * <p>When using <a href="fs.html#fscpsrc-dest-options-callback"><code>fs.cp()</code></a>, a symlink in <code>dest</code> pointed to a subdirectory
474
+ * of <code>src</code>.</p>
475
+ * <p><a id="ERR_FS_CP_UNKNOWN"></a></p>
476
+ */
477
+ ERR_FS_CP_SYMLINK_TO_SUBDIRECTORY = "ERR_FS_CP_SYMLINK_TO_SUBDIRECTORY",
478
+ /**
479
+ * <p>An attempt was made to copy to an unknown file type with <a href="fs.html#fscpsrc-dest-options-callback"><code>fs.cp()</code></a>.</p>
480
+ * <p><a id="ERR_FS_EISDIR"></a></p>
481
+ */
482
+ ERR_FS_CP_UNKNOWN = "ERR_FS_CP_UNKNOWN",
483
+ /**
484
+ * <p>Path is a directory.</p>
485
+ * <p><a id="ERR_FS_FILE_TOO_LARGE"></a></p>
486
+ */
487
+ ERR_FS_EISDIR = "ERR_FS_EISDIR",
488
+ /**
489
+ * <p>An attempt has been made to read a file whose size is larger than the maximum
490
+ * allowed size for a <code>Buffer</code>.</p>
491
+ * <p><a id="ERR_FS_WATCH_QUEUE_OVERFLOW"></a></p>
492
+ */
493
+ ERR_FS_FILE_TOO_LARGE = "ERR_FS_FILE_TOO_LARGE",
494
+ /**
495
+ * <p>The number of file system events queued without being handled exceeded the size specified in
496
+ * <code>maxQueue</code> in <code>fs.watch()</code>.</p>
497
+ * <p><a id="ERR_HTTP2_ALTSVC_INVALID_ORIGIN"></a></p>
498
+ */
499
+ ERR_FS_WATCH_QUEUE_OVERFLOW = "ERR_FS_WATCH_QUEUE_OVERFLOW",
500
+ /**
501
+ * <p>HTTP/2 ALTSVC frames require a valid origin.</p>
502
+ * <p><a id="ERR_HTTP2_ALTSVC_LENGTH"></a></p>
503
+ */
504
+ ERR_HTTP2_ALTSVC_INVALID_ORIGIN = "ERR_HTTP2_ALTSVC_INVALID_ORIGIN",
505
+ /**
506
+ * <p>HTTP/2 ALTSVC frames are limited to a maximum of 16,382 payload bytes.</p>
507
+ * <p><a id="ERR_HTTP2_CONNECT_AUTHORITY"></a></p>
508
+ */
509
+ ERR_HTTP2_ALTSVC_LENGTH = "ERR_HTTP2_ALTSVC_LENGTH",
510
+ /**
511
+ * <p>For HTTP/2 requests using the <code>CONNECT</code> method, the <code>:authority</code> pseudo-header
512
+ * is required.</p>
513
+ * <p><a id="ERR_HTTP2_CONNECT_PATH"></a></p>
514
+ */
515
+ ERR_HTTP2_CONNECT_AUTHORITY = "ERR_HTTP2_CONNECT_AUTHORITY",
516
+ /**
517
+ * <p>For HTTP/2 requests using the <code>CONNECT</code> method, the <code>:path</code> pseudo-header is
518
+ * forbidden.</p>
519
+ * <p><a id="ERR_HTTP2_CONNECT_SCHEME"></a></p>
520
+ */
521
+ ERR_HTTP2_CONNECT_PATH = "ERR_HTTP2_CONNECT_PATH",
522
+ /**
523
+ * <p>For HTTP/2 requests using the <code>CONNECT</code> method, the <code>:scheme</code> pseudo-header is
524
+ * forbidden.</p>
525
+ * <p><a id="ERR_HTTP2_ERROR"></a></p>
526
+ */
527
+ ERR_HTTP2_CONNECT_SCHEME = "ERR_HTTP2_CONNECT_SCHEME",
528
+ /**
529
+ * <p>A non-specific HTTP/2 error has occurred.</p>
530
+ * <p><a id="ERR_HTTP2_GOAWAY_SESSION"></a></p>
531
+ */
532
+ ERR_HTTP2_ERROR = "ERR_HTTP2_ERROR",
533
+ /**
534
+ * <p>New HTTP/2 Streams may not be opened after the <code>Http2Session</code> has received a
535
+ * <code>GOAWAY</code> frame from the connected peer.</p>
536
+ * <p><a id="ERR_HTTP2_HEADERS_AFTER_RESPOND"></a></p>
537
+ */
538
+ ERR_HTTP2_GOAWAY_SESSION = "ERR_HTTP2_GOAWAY_SESSION",
539
+ /**
540
+ * <p>An additional headers was specified after an HTTP/2 response was initiated.</p>
541
+ * <p><a id="ERR_HTTP2_HEADERS_SENT"></a></p>
542
+ */
543
+ ERR_HTTP2_HEADERS_AFTER_RESPOND = "ERR_HTTP2_HEADERS_AFTER_RESPOND",
544
+ /**
545
+ * <p>An attempt was made to send multiple response headers.</p>
546
+ * <p><a id="ERR_HTTP2_HEADER_SINGLE_VALUE"></a></p>
547
+ */
548
+ ERR_HTTP2_HEADERS_SENT = "ERR_HTTP2_HEADERS_SENT",
549
+ /**
550
+ * <p>Multiple values were provided for an HTTP/2 header field that was required to
551
+ * have only a single value.</p>
552
+ * <p><a id="ERR_HTTP2_INFO_STATUS_NOT_ALLOWED"></a></p>
553
+ */
554
+ ERR_HTTP2_HEADER_SINGLE_VALUE = "ERR_HTTP2_HEADER_SINGLE_VALUE",
555
+ /**
556
+ * <p>Informational HTTP status codes (<code>1xx</code>) may not be set as the response status
557
+ * code on HTTP/2 responses.</p>
558
+ * <p><a id="ERR_HTTP2_INVALID_CONNECTION_HEADERS"></a></p>
559
+ */
560
+ ERR_HTTP2_INFO_STATUS_NOT_ALLOWED = "ERR_HTTP2_INFO_STATUS_NOT_ALLOWED",
561
+ /**
562
+ * <p>HTTP/1 connection specific headers are forbidden to be used in HTTP/2
563
+ * requests and responses.</p>
564
+ * <p><a id="ERR_HTTP2_INVALID_HEADER_VALUE"></a></p>
565
+ */
566
+ ERR_HTTP2_INVALID_CONNECTION_HEADERS = "ERR_HTTP2_INVALID_CONNECTION_HEADERS",
567
+ /**
568
+ * <p>An invalid HTTP/2 header value was specified.</p>
569
+ * <p><a id="ERR_HTTP2_INVALID_INFO_STATUS"></a></p>
570
+ */
571
+ ERR_HTTP2_INVALID_HEADER_VALUE = "ERR_HTTP2_INVALID_HEADER_VALUE",
572
+ /**
573
+ * <p>An invalid HTTP informational status code has been specified. Informational
574
+ * status codes must be an integer between <code>100</code> and <code>199</code> (inclusive).</p>
575
+ * <p><a id="ERR_HTTP2_INVALID_ORIGIN"></a></p>
576
+ */
577
+ ERR_HTTP2_INVALID_INFO_STATUS = "ERR_HTTP2_INVALID_INFO_STATUS",
578
+ /**
579
+ * <p>HTTP/2 <code>ORIGIN</code> frames require a valid origin.</p>
580
+ * <p><a id="ERR_HTTP2_INVALID_PACKED_SETTINGS_LENGTH"></a></p>
581
+ */
582
+ ERR_HTTP2_INVALID_ORIGIN = "ERR_HTTP2_INVALID_ORIGIN",
583
+ /**
584
+ * <p>Input <code>Buffer</code> and <code>Uint8Array</code> instances passed to the
585
+ * <code>http2.getUnpackedSettings()</code> API must have a length that is a multiple of
586
+ * six.</p>
587
+ * <p><a id="ERR_HTTP2_INVALID_PSEUDOHEADER"></a></p>
588
+ */
589
+ ERR_HTTP2_INVALID_PACKED_SETTINGS_LENGTH = "ERR_HTTP2_INVALID_PACKED_SETTINGS_LENGTH",
590
+ /**
591
+ * <p>Only valid HTTP/2 pseudoheaders (<code>:status</code>, <code>:path</code>, <code>:authority</code>, <code>:scheme</code>,
592
+ * and <code>:method</code>) may be used.</p>
593
+ * <p><a id="ERR_HTTP2_INVALID_SESSION"></a></p>
594
+ */
595
+ ERR_HTTP2_INVALID_PSEUDOHEADER = "ERR_HTTP2_INVALID_PSEUDOHEADER",
596
+ /**
597
+ * <p>An action was performed on an <code>Http2Session</code> object that had already been
598
+ * destroyed.</p>
599
+ * <p><a id="ERR_HTTP2_INVALID_SETTING_VALUE"></a></p>
600
+ */
601
+ ERR_HTTP2_INVALID_SESSION = "ERR_HTTP2_INVALID_SESSION",
602
+ /**
603
+ * <p>An invalid value has been specified for an HTTP/2 setting.</p>
604
+ * <p><a id="ERR_HTTP2_INVALID_STREAM"></a></p>
605
+ */
606
+ ERR_HTTP2_INVALID_SETTING_VALUE = "ERR_HTTP2_INVALID_SETTING_VALUE",
607
+ /**
608
+ * <p>An operation was performed on a stream that had already been destroyed.</p>
609
+ * <p><a id="ERR_HTTP2_MAX_PENDING_SETTINGS_ACK"></a></p>
610
+ */
611
+ ERR_HTTP2_INVALID_STREAM = "ERR_HTTP2_INVALID_STREAM",
612
+ /**
613
+ * <p>Whenever an HTTP/2 <code>SETTINGS</code> frame is sent to a connected peer, the peer is
614
+ * required to send an acknowledgment that it has received and applied the new
615
+ * <code>SETTINGS</code>. By default, a maximum number of unacknowledged <code>SETTINGS</code> frames may
616
+ * be sent at any given time. This error code is used when that limit has been
617
+ * reached.</p>
618
+ * <p><a id="ERR_HTTP2_NESTED_PUSH"></a></p>
619
+ */
620
+ ERR_HTTP2_MAX_PENDING_SETTINGS_ACK = "ERR_HTTP2_MAX_PENDING_SETTINGS_ACK",
621
+ /**
622
+ * <p>An attempt was made to initiate a new push stream from within a push stream.
623
+ * Nested push streams are not permitted.</p>
624
+ * <p><a id="ERR_HTTP2_NO_MEM"></a></p>
625
+ */
626
+ ERR_HTTP2_NESTED_PUSH = "ERR_HTTP2_NESTED_PUSH",
627
+ /**
628
+ * <p>Out of memory when using the <code>http2session.setLocalWindowSize(windowSize)</code> API.</p>
629
+ * <p><a id="ERR_HTTP2_NO_SOCKET_MANIPULATION"></a></p>
630
+ */
631
+ ERR_HTTP2_NO_MEM = "ERR_HTTP2_NO_MEM",
632
+ /**
633
+ * <p>An attempt was made to directly manipulate (read, write, pause, resume, etc.) a
634
+ * socket attached to an <code>Http2Session</code>.</p>
635
+ * <p><a id="ERR_HTTP2_ORIGIN_LENGTH"></a></p>
636
+ */
637
+ ERR_HTTP2_NO_SOCKET_MANIPULATION = "ERR_HTTP2_NO_SOCKET_MANIPULATION",
638
+ /**
639
+ * <p>HTTP/2 <code>ORIGIN</code> frames are limited to a length of 16382 bytes.</p>
640
+ * <p><a id="ERR_HTTP2_OUT_OF_STREAMS"></a></p>
641
+ */
642
+ ERR_HTTP2_ORIGIN_LENGTH = "ERR_HTTP2_ORIGIN_LENGTH",
643
+ /**
644
+ * <p>The number of streams created on a single HTTP/2 session reached the maximum
645
+ * limit.</p>
646
+ * <p><a id="ERR_HTTP2_PAYLOAD_FORBIDDEN"></a></p>
647
+ */
648
+ ERR_HTTP2_OUT_OF_STREAMS = "ERR_HTTP2_OUT_OF_STREAMS",
649
+ /**
650
+ * <p>A message payload was specified for an HTTP response code for which a payload is
651
+ * forbidden.</p>
652
+ * <p><a id="ERR_HTTP2_PING_CANCEL"></a></p>
653
+ */
654
+ ERR_HTTP2_PAYLOAD_FORBIDDEN = "ERR_HTTP2_PAYLOAD_FORBIDDEN",
655
+ /**
656
+ * <p>An HTTP/2 ping was canceled.</p>
657
+ * <p><a id="ERR_HTTP2_PING_LENGTH"></a></p>
658
+ */
659
+ ERR_HTTP2_PING_CANCEL = "ERR_HTTP2_PING_CANCEL",
660
+ /**
661
+ * <p>HTTP/2 ping payloads must be exactly 8 bytes in length.</p>
662
+ * <p><a id="ERR_HTTP2_PSEUDOHEADER_NOT_ALLOWED"></a></p>
663
+ */
664
+ ERR_HTTP2_PING_LENGTH = "ERR_HTTP2_PING_LENGTH",
665
+ /**
666
+ * <p>An HTTP/2 pseudo-header has been used inappropriately. Pseudo-headers are header
667
+ * key names that begin with the <code>:</code> prefix.</p>
668
+ * <p><a id="ERR_HTTP2_PUSH_DISABLED"></a></p>
669
+ */
670
+ ERR_HTTP2_PSEUDOHEADER_NOT_ALLOWED = "ERR_HTTP2_PSEUDOHEADER_NOT_ALLOWED",
671
+ /**
672
+ * <p>An attempt was made to create a push stream, which had been disabled by the
673
+ * client.</p>
674
+ * <p><a id="ERR_HTTP2_SEND_FILE"></a></p>
675
+ */
676
+ ERR_HTTP2_PUSH_DISABLED = "ERR_HTTP2_PUSH_DISABLED",
677
+ /**
678
+ * <p>An attempt was made to use the <code>Http2Stream.prototype.responseWithFile()</code> API to
679
+ * send a directory.</p>
680
+ * <p><a id="ERR_HTTP2_SEND_FILE_NOSEEK"></a></p>
681
+ */
682
+ ERR_HTTP2_SEND_FILE = "ERR_HTTP2_SEND_FILE",
683
+ /**
684
+ * <p>An attempt was made to use the <code>Http2Stream.prototype.responseWithFile()</code> API to
685
+ * send something other than a regular file, but <code>offset</code> or <code>length</code> options were
686
+ * provided.</p>
687
+ * <p><a id="ERR_HTTP2_SESSION_ERROR"></a></p>
688
+ */
689
+ ERR_HTTP2_SEND_FILE_NOSEEK = "ERR_HTTP2_SEND_FILE_NOSEEK",
690
+ /**
691
+ * <p>The <code>Http2Session</code> closed with a non-zero error code.</p>
692
+ * <p><a id="ERR_HTTP2_SETTINGS_CANCEL"></a></p>
693
+ */
694
+ ERR_HTTP2_SESSION_ERROR = "ERR_HTTP2_SESSION_ERROR",
695
+ /**
696
+ * <p>The <code>Http2Session</code> settings canceled.</p>
697
+ * <p><a id="ERR_HTTP2_SOCKET_BOUND"></a></p>
698
+ */
699
+ ERR_HTTP2_SETTINGS_CANCEL = "ERR_HTTP2_SETTINGS_CANCEL",
700
+ /**
701
+ * <p>An attempt was made to connect a <code>Http2Session</code> object to a <code>net.Socket</code> or
702
+ * <code>tls.TLSSocket</code> that had already been bound to another <code>Http2Session</code> object.</p>
703
+ * <p><a id="ERR_HTTP2_SOCKET_UNBOUND"></a></p>
704
+ */
705
+ ERR_HTTP2_SOCKET_BOUND = "ERR_HTTP2_SOCKET_BOUND",
706
+ /**
707
+ * <p>An attempt was made to use the <code>socket</code> property of an <code>Http2Session</code> that
708
+ * has already been closed.</p>
709
+ * <p><a id="ERR_HTTP2_STATUS_101"></a></p>
710
+ */
711
+ ERR_HTTP2_SOCKET_UNBOUND = "ERR_HTTP2_SOCKET_UNBOUND",
712
+ /**
713
+ * <p>Use of the <code>101</code> Informational status code is forbidden in HTTP/2.</p>
714
+ * <p><a id="ERR_HTTP2_STATUS_INVALID"></a></p>
715
+ */
716
+ ERR_HTTP2_STATUS_101 = "ERR_HTTP2_STATUS_101",
717
+ /**
718
+ * <p>An invalid HTTP status code has been specified. Status codes must be an integer
719
+ * between <code>100</code> and <code>599</code> (inclusive).</p>
720
+ * <p><a id="ERR_HTTP2_STREAM_CANCEL"></a></p>
721
+ */
722
+ ERR_HTTP2_STATUS_INVALID = "ERR_HTTP2_STATUS_INVALID",
723
+ /**
724
+ * <p>An <code>Http2Stream</code> was destroyed before any data was transmitted to the connected
725
+ * peer.</p>
726
+ * <p><a id="ERR_HTTP2_STREAM_ERROR"></a></p>
727
+ */
728
+ ERR_HTTP2_STREAM_CANCEL = "ERR_HTTP2_STREAM_CANCEL",
729
+ /**
730
+ * <p>A non-zero error code was been specified in an <code>RST_STREAM</code> frame.</p>
731
+ * <p><a id="ERR_HTTP2_STREAM_SELF_DEPENDENCY"></a></p>
732
+ */
733
+ ERR_HTTP2_STREAM_ERROR = "ERR_HTTP2_STREAM_ERROR",
734
+ /**
735
+ * <p>When setting the priority for an HTTP/2 stream, the stream may be marked as
736
+ * a dependency for a parent stream. This error code is used when an attempt is
737
+ * made to mark a stream and dependent of itself.</p>
738
+ * <p><a id="ERR_HTTP2_TOO_MANY_CUSTOM_SETTINGS"></a></p>
739
+ */
740
+ ERR_HTTP2_STREAM_SELF_DEPENDENCY = "ERR_HTTP2_STREAM_SELF_DEPENDENCY",
741
+ /**
742
+ * <p>The number of supported custom settings (10) has been exceeded.</p>
743
+ * <p><a id="ERR_HTTP2_TOO_MANY_INVALID_FRAMES"></a></p>
744
+ */
745
+ ERR_HTTP2_TOO_MANY_CUSTOM_SETTINGS = "ERR_HTTP2_TOO_MANY_CUSTOM_SETTINGS",
746
+ /**
747
+ * <p>The limit of acceptable invalid HTTP/2 protocol frames sent by the peer,
748
+ * as specified through the <code>maxSessionInvalidFrames</code> option, has been exceeded.</p>
749
+ * <p><a id="ERR_HTTP2_TRAILERS_ALREADY_SENT"></a></p>
750
+ */
751
+ ERR_HTTP2_TOO_MANY_INVALID_FRAMES = "ERR_HTTP2_TOO_MANY_INVALID_FRAMES",
752
+ /**
753
+ * <p>Trailing headers have already been sent on the <code>Http2Stream</code>.</p>
754
+ * <p><a id="ERR_HTTP2_TRAILERS_NOT_READY"></a></p>
755
+ */
756
+ ERR_HTTP2_TRAILERS_ALREADY_SENT = "ERR_HTTP2_TRAILERS_ALREADY_SENT",
757
+ /**
758
+ * <p>The <code>http2stream.sendTrailers()</code> method cannot be called until after the
759
+ * <code>'wantTrailers'</code> event is emitted on an <code>Http2Stream</code> object. The
760
+ * <code>'wantTrailers'</code> event will only be emitted if the <code>waitForTrailers</code> option
761
+ * is set for the <code>Http2Stream</code>.</p>
762
+ * <p><a id="ERR_HTTP2_UNSUPPORTED_PROTOCOL"></a></p>
763
+ */
764
+ ERR_HTTP2_TRAILERS_NOT_READY = "ERR_HTTP2_TRAILERS_NOT_READY",
765
+ /**
766
+ * <p><code>http2.connect()</code> was passed a URL that uses any protocol other than <code>http:</code> or
767
+ * <code>https:</code>.</p>
768
+ * <p><a id="ERR_HTTP_BODY_NOT_ALLOWED"></a></p>
769
+ */
770
+ ERR_HTTP2_UNSUPPORTED_PROTOCOL = "ERR_HTTP2_UNSUPPORTED_PROTOCOL",
771
+ /**
772
+ * <p>An error is thrown when writing to an HTTP response which does not allow
773
+ * contents.</p>
774
+ * <p><a id="ERR_HTTP_CONTENT_LENGTH_MISMATCH"></a></p>
775
+ */
776
+ ERR_HTTP_BODY_NOT_ALLOWED = "ERR_HTTP_BODY_NOT_ALLOWED",
777
+ /**
778
+ * <p>Response body size doesn't match with the specified content-length header value.</p>
779
+ * <p><a id="ERR_HTTP_HEADERS_SENT"></a></p>
780
+ */
781
+ ERR_HTTP_CONTENT_LENGTH_MISMATCH = "ERR_HTTP_CONTENT_LENGTH_MISMATCH",
782
+ /**
783
+ * <p>An attempt was made to add more headers after the headers had already been sent.</p>
784
+ * <p><a id="ERR_HTTP_INVALID_HEADER_VALUE"></a></p>
785
+ */
786
+ ERR_HTTP_HEADERS_SENT = "ERR_HTTP_HEADERS_SENT",
787
+ /**
788
+ * <p>An invalid HTTP header value was specified.</p>
789
+ * <p><a id="ERR_HTTP_INVALID_STATUS_CODE"></a></p>
790
+ */
791
+ ERR_HTTP_INVALID_HEADER_VALUE = "ERR_HTTP_INVALID_HEADER_VALUE",
792
+ /**
793
+ * <p>Status code was outside the regular status code range (100-999).</p>
794
+ * <p><a id="ERR_HTTP_REQUEST_TIMEOUT"></a></p>
795
+ */
796
+ ERR_HTTP_INVALID_STATUS_CODE = "ERR_HTTP_INVALID_STATUS_CODE",
797
+ /**
798
+ * <p>The client has not sent the entire request within the allowed time.</p>
799
+ * <p><a id="ERR_HTTP_SOCKET_ASSIGNED"></a></p>
800
+ */
801
+ ERR_HTTP_REQUEST_TIMEOUT = "ERR_HTTP_REQUEST_TIMEOUT",
802
+ /**
803
+ * <p>The given <a href="http.html#class-httpserverresponse"><code>ServerResponse</code></a> was already assigned a socket.</p>
804
+ * <p><a id="ERR_HTTP_SOCKET_ENCODING"></a></p>
805
+ */
806
+ ERR_HTTP_SOCKET_ASSIGNED = "ERR_HTTP_SOCKET_ASSIGNED",
807
+ /**
808
+ * <p>Changing the socket encoding is not allowed per <a href="https://tools.ietf.org/html/rfc7230#section-3">RFC 7230 Section 3</a>.</p>
809
+ * <p><a id="ERR_HTTP_TRAILER_INVALID"></a></p>
810
+ */
811
+ ERR_HTTP_SOCKET_ENCODING = "ERR_HTTP_SOCKET_ENCODING",
812
+ /**
813
+ * <p>The <code>Trailer</code> header was set even though the transfer encoding does not support
814
+ * that.</p>
815
+ * <p><a id="ERR_ILLEGAL_CONSTRUCTOR"></a></p>
816
+ */
817
+ ERR_HTTP_TRAILER_INVALID = "ERR_HTTP_TRAILER_INVALID",
818
+ /**
819
+ * <p>An attempt was made to construct an object using a non-public constructor.</p>
820
+ * <p><a id="ERR_IMPORT_ATTRIBUTE_MISSING"></a></p>
821
+ */
822
+ ERR_ILLEGAL_CONSTRUCTOR = "ERR_ILLEGAL_CONSTRUCTOR",
823
+ /**
824
+ * <p>An import attribute is missing, preventing the specified module to be imported.</p>
825
+ * <p><a id="ERR_IMPORT_ATTRIBUTE_TYPE_INCOMPATIBLE"></a></p>
826
+ */
827
+ ERR_IMPORT_ATTRIBUTE_MISSING = "ERR_IMPORT_ATTRIBUTE_MISSING",
828
+ /**
829
+ * <p>An import <code>type</code> attribute was provided, but the specified module is of a
830
+ * different type.</p>
831
+ * <p><a id="ERR_IMPORT_ATTRIBUTE_UNSUPPORTED"></a></p>
832
+ */
833
+ ERR_IMPORT_ATTRIBUTE_TYPE_INCOMPATIBLE = "ERR_IMPORT_ATTRIBUTE_TYPE_INCOMPATIBLE",
834
+ /**
835
+ * <p>An import attribute is not supported by this version of Node.js.</p>
836
+ * <p><a id="ERR_INCOMPATIBLE_OPTION_PAIR"></a></p>
837
+ */
838
+ ERR_IMPORT_ATTRIBUTE_UNSUPPORTED = "ERR_IMPORT_ATTRIBUTE_UNSUPPORTED",
839
+ /**
840
+ * <p>An option pair is incompatible with each other and cannot be used at the same
841
+ * time.</p>
842
+ * <p><a id="ERR_INPUT_TYPE_NOT_ALLOWED"></a></p>
843
+ */
844
+ ERR_INCOMPATIBLE_OPTION_PAIR = "ERR_INCOMPATIBLE_OPTION_PAIR",
845
+ /**
846
+ * <p>The <code>--input-type</code> flag was used to attempt to execute a file. This flag can
847
+ * only be used with input via <code>--eval</code>, <code>--print</code>, or <code>STDIN</code>.</p>
848
+ * <p><a id="ERR_INSPECTOR_ALREADY_ACTIVATED"></a></p>
849
+ */
850
+ ERR_INPUT_TYPE_NOT_ALLOWED = "ERR_INPUT_TYPE_NOT_ALLOWED",
851
+ /**
852
+ * <p>While using the <code>node:inspector</code> module, an attempt was made to activate the
853
+ * inspector when it already started to listen on a port. Use <code>inspector.close()</code>
854
+ * before activating it on a different address.</p>
855
+ * <p><a id="ERR_INSPECTOR_ALREADY_CONNECTED"></a></p>
856
+ */
857
+ ERR_INSPECTOR_ALREADY_ACTIVATED = "ERR_INSPECTOR_ALREADY_ACTIVATED",
858
+ /**
859
+ * <p>While using the <code>node:inspector</code> module, an attempt was made to connect when the
860
+ * inspector was already connected.</p>
861
+ * <p><a id="ERR_INSPECTOR_CLOSED"></a></p>
862
+ */
863
+ ERR_INSPECTOR_ALREADY_CONNECTED = "ERR_INSPECTOR_ALREADY_CONNECTED",
864
+ /**
865
+ * <p>While using the <code>node:inspector</code> module, an attempt was made to use the
866
+ * inspector after the session had already closed.</p>
867
+ * <p><a id="ERR_INSPECTOR_COMMAND"></a></p>
868
+ */
869
+ ERR_INSPECTOR_CLOSED = "ERR_INSPECTOR_CLOSED",
870
+ /**
871
+ * <p>An error occurred while issuing a command via the <code>node:inspector</code> module.</p>
872
+ * <p><a id="ERR_INSPECTOR_NOT_ACTIVE"></a></p>
873
+ */
874
+ ERR_INSPECTOR_COMMAND = "ERR_INSPECTOR_COMMAND",
875
+ /**
876
+ * <p>The <code>inspector</code> is not active when <code>inspector.waitForDebugger()</code> is called.</p>
877
+ * <p><a id="ERR_INSPECTOR_NOT_AVAILABLE"></a></p>
878
+ */
879
+ ERR_INSPECTOR_NOT_ACTIVE = "ERR_INSPECTOR_NOT_ACTIVE",
880
+ /**
881
+ * <p>The <code>node:inspector</code> module is not available for use.</p>
882
+ * <p><a id="ERR_INSPECTOR_NOT_CONNECTED"></a></p>
883
+ */
884
+ ERR_INSPECTOR_NOT_AVAILABLE = "ERR_INSPECTOR_NOT_AVAILABLE",
885
+ /**
886
+ * <p>While using the <code>node:inspector</code> module, an attempt was made to use the
887
+ * inspector before it was connected.</p>
888
+ * <p><a id="ERR_INSPECTOR_NOT_WORKER"></a></p>
889
+ */
890
+ ERR_INSPECTOR_NOT_CONNECTED = "ERR_INSPECTOR_NOT_CONNECTED",
891
+ /**
892
+ * <p>An API was called on the main thread that can only be used from
893
+ * the worker thread.</p>
894
+ * <p><a id="ERR_INTERNAL_ASSERTION"></a></p>
895
+ */
896
+ ERR_INSPECTOR_NOT_WORKER = "ERR_INSPECTOR_NOT_WORKER",
897
+ /**
898
+ * <p>There was a bug in Node.js or incorrect usage of Node.js internals.
899
+ * To fix the error, open an issue at <a href="https://github.com/nodejs/node/issues">https://github.com/nodejs/node/issues</a>.</p>
900
+ * <p><a id="ERR_INVALID_ADDRESS"></a></p>
901
+ */
902
+ ERR_INTERNAL_ASSERTION = "ERR_INTERNAL_ASSERTION",
903
+ /**
904
+ * <p>The provided address is not understood by the Node.js API.</p>
905
+ * <p><a id="ERR_INVALID_ADDRESS_FAMILY"></a></p>
906
+ */
907
+ ERR_INVALID_ADDRESS = "ERR_INVALID_ADDRESS",
908
+ /**
909
+ * <p>The provided address family is not understood by the Node.js API.</p>
910
+ * <p><a id="ERR_INVALID_ARG_TYPE"></a></p>
911
+ */
912
+ ERR_INVALID_ADDRESS_FAMILY = "ERR_INVALID_ADDRESS_FAMILY",
913
+ /**
914
+ * <p>An argument of the wrong type was passed to a Node.js API.</p>
915
+ * <p><a id="ERR_INVALID_ARG_VALUE"></a></p>
916
+ */
917
+ ERR_INVALID_ARG_TYPE = "ERR_INVALID_ARG_TYPE",
918
+ /**
919
+ * <p>An invalid or unsupported value was passed for a given argument.</p>
920
+ * <p><a id="ERR_INVALID_ASYNC_ID"></a></p>
921
+ */
922
+ ERR_INVALID_ARG_VALUE = "ERR_INVALID_ARG_VALUE",
923
+ /**
924
+ * <p>An invalid <code>asyncId</code> or <code>triggerAsyncId</code> was passed using <code>AsyncHooks</code>. An id
925
+ * less than -1 should never happen.</p>
926
+ * <p><a id="ERR_INVALID_BUFFER_SIZE"></a></p>
927
+ */
928
+ ERR_INVALID_ASYNC_ID = "ERR_INVALID_ASYNC_ID",
929
+ /**
930
+ * <p>A swap was performed on a <code>Buffer</code> but its size was not compatible with the
931
+ * operation.</p>
932
+ * <p><a id="ERR_INVALID_CHAR"></a></p>
933
+ */
934
+ ERR_INVALID_BUFFER_SIZE = "ERR_INVALID_BUFFER_SIZE",
935
+ /**
936
+ * <p>Invalid characters were detected in headers.</p>
937
+ * <p><a id="ERR_INVALID_CURSOR_POS"></a></p>
938
+ */
939
+ ERR_INVALID_CHAR = "ERR_INVALID_CHAR",
940
+ /**
941
+ * <p>A cursor on a given stream cannot be moved to a specified row without a
942
+ * specified column.</p>
943
+ * <p><a id="ERR_INVALID_FD"></a></p>
944
+ */
945
+ ERR_INVALID_CURSOR_POS = "ERR_INVALID_CURSOR_POS",
946
+ /**
947
+ * <p>A file descriptor ('fd') was not valid (e.g. it was a negative value).</p>
948
+ * <p><a id="ERR_INVALID_FD_TYPE"></a></p>
949
+ */
950
+ ERR_INVALID_FD = "ERR_INVALID_FD",
951
+ /**
952
+ * <p>A file descriptor ('fd') type was not valid.</p>
953
+ * <p><a id="ERR_INVALID_FILE_URL_HOST"></a></p>
954
+ */
955
+ ERR_INVALID_FD_TYPE = "ERR_INVALID_FD_TYPE",
956
+ /**
957
+ * <p>A Node.js API that consumes <code>file:</code> URLs (such as certain functions in the
958
+ * <a href="fs.html"><code>fs</code></a> module) encountered a file URL with an incompatible host. This
959
+ * situation can only occur on Unix-like systems where only <code>localhost</code> or an empty
960
+ * host is supported.</p>
961
+ * <p><a id="ERR_INVALID_FILE_URL_PATH"></a></p>
962
+ */
963
+ ERR_INVALID_FILE_URL_HOST = "ERR_INVALID_FILE_URL_HOST",
964
+ /**
965
+ * <p>A Node.js API that consumes <code>file:</code> URLs (such as certain functions in the
966
+ * <a href="fs.html"><code>fs</code></a> module) encountered a file URL with an incompatible path. The exact
967
+ * semantics for determining whether a path can be used is platform-dependent.</p>
968
+ * <p><a id="ERR_INVALID_HANDLE_TYPE"></a></p>
969
+ */
970
+ ERR_INVALID_FILE_URL_PATH = "ERR_INVALID_FILE_URL_PATH",
971
+ /**
972
+ * <p>An attempt was made to send an unsupported "handle" over an IPC communication
973
+ * channel to a child process. See <a href="child_process.html#subprocesssendmessage-sendhandle-options-callback"><code>subprocess.send()</code></a> and <a href="process.html#processsendmessage-sendhandle-options-callback"><code>process.send()</code></a>
974
+ * for more information.</p>
975
+ * <p><a id="ERR_INVALID_HTTP_TOKEN"></a></p>
976
+ */
977
+ ERR_INVALID_HANDLE_TYPE = "ERR_INVALID_HANDLE_TYPE",
978
+ /**
979
+ * <p>An invalid HTTP token was supplied.</p>
980
+ * <p><a id="ERR_INVALID_IP_ADDRESS"></a></p>
981
+ */
982
+ ERR_INVALID_HTTP_TOKEN = "ERR_INVALID_HTTP_TOKEN",
983
+ /**
984
+ * <p>An IP address is not valid.</p>
985
+ * <p><a id="ERR_INVALID_MIME_SYNTAX"></a></p>
986
+ */
987
+ ERR_INVALID_IP_ADDRESS = "ERR_INVALID_IP_ADDRESS",
988
+ /**
989
+ * <p>The syntax of a MIME is not valid.</p>
990
+ * <p><a id="ERR_INVALID_MODULE"></a></p>
991
+ */
992
+ ERR_INVALID_MIME_SYNTAX = "ERR_INVALID_MIME_SYNTAX",
993
+ /**
994
+ * <p>An attempt was made to load a module that does not exist or was otherwise not
995
+ * valid.</p>
996
+ * <p><a id="ERR_INVALID_MODULE_SPECIFIER"></a></p>
997
+ */
998
+ ERR_INVALID_MODULE = "ERR_INVALID_MODULE",
999
+ /**
1000
+ * <p>The imported module string is an invalid URL, package name, or package subpath
1001
+ * specifier.</p>
1002
+ * <p><a id="ERR_INVALID_OBJECT_DEFINE_PROPERTY"></a></p>
1003
+ */
1004
+ ERR_INVALID_MODULE_SPECIFIER = "ERR_INVALID_MODULE_SPECIFIER",
1005
+ /**
1006
+ * <p>An error occurred while setting an invalid attribute on the property of
1007
+ * an object.</p>
1008
+ * <p><a id="ERR_INVALID_PACKAGE_CONFIG"></a></p>
1009
+ */
1010
+ ERR_INVALID_OBJECT_DEFINE_PROPERTY = "ERR_INVALID_OBJECT_DEFINE_PROPERTY",
1011
+ /**
1012
+ * <p>An invalid <a href="packages.html#nodejs-packagejson-field-definitions"><code>package.json</code></a> file failed parsing.</p>
1013
+ * <p><a id="ERR_INVALID_PACKAGE_TARGET"></a></p>
1014
+ */
1015
+ ERR_INVALID_PACKAGE_CONFIG = "ERR_INVALID_PACKAGE_CONFIG",
1016
+ /**
1017
+ * <p>The <code>package.json</code> <a href="packages.html#exports"><code>"exports"</code></a> field contains an invalid target mapping
1018
+ * value for the attempted module resolution.</p>
1019
+ * <p><a id="ERR_INVALID_PROTOCOL"></a></p>
1020
+ */
1021
+ ERR_INVALID_PACKAGE_TARGET = "ERR_INVALID_PACKAGE_TARGET",
1022
+ /**
1023
+ * <p>An invalid <code>options.protocol</code> was passed to <code>http.request()</code>.</p>
1024
+ * <p><a id="ERR_INVALID_REPL_EVAL_CONFIG"></a></p>
1025
+ */
1026
+ ERR_INVALID_PROTOCOL = "ERR_INVALID_PROTOCOL",
1027
+ /**
1028
+ * <p>Both <code>breakEvalOnSigint</code> and <code>eval</code> options were set in the <a href="repl.html"><code>REPL</code></a> config,
1029
+ * which is not supported.</p>
1030
+ * <p><a id="ERR_INVALID_REPL_INPUT"></a></p>
1031
+ */
1032
+ ERR_INVALID_REPL_EVAL_CONFIG = "ERR_INVALID_REPL_EVAL_CONFIG",
1033
+ /**
1034
+ * <p>The input may not be used in the <a href="repl.html"><code>REPL</code></a>. The conditions under which this
1035
+ * error is used are described in the <a href="repl.html"><code>REPL</code></a> documentation.</p>
1036
+ * <p><a id="ERR_INVALID_RETURN_PROPERTY"></a></p>
1037
+ */
1038
+ ERR_INVALID_REPL_INPUT = "ERR_INVALID_REPL_INPUT",
1039
+ /**
1040
+ * <p>Thrown in case a function option does not provide a valid value for one of its
1041
+ * returned object properties on execution.</p>
1042
+ * <p><a id="ERR_INVALID_RETURN_PROPERTY_VALUE"></a></p>
1043
+ */
1044
+ ERR_INVALID_RETURN_PROPERTY = "ERR_INVALID_RETURN_PROPERTY",
1045
+ /**
1046
+ * <p>Thrown in case a function option does not provide an expected value
1047
+ * type for one of its returned object properties on execution.</p>
1048
+ * <p><a id="ERR_INVALID_RETURN_VALUE"></a></p>
1049
+ */
1050
+ ERR_INVALID_RETURN_PROPERTY_VALUE = "ERR_INVALID_RETURN_PROPERTY_VALUE",
1051
+ /**
1052
+ * <p>Thrown in case a function option does not return an expected value
1053
+ * type on execution, such as when a function is expected to return a promise.</p>
1054
+ * <p><a id="ERR_INVALID_STATE"></a></p>
1055
+ */
1056
+ ERR_INVALID_RETURN_VALUE = "ERR_INVALID_RETURN_VALUE",
1057
+ /**
1058
+ * <p>Indicates that an operation cannot be completed due to an invalid state.
1059
+ * For instance, an object may have already been destroyed, or may be
1060
+ * performing another operation.</p>
1061
+ * <p><a id="ERR_INVALID_SYNC_FORK_INPUT"></a></p>
1062
+ */
1063
+ ERR_INVALID_STATE = "ERR_INVALID_STATE",
1064
+ /**
1065
+ * <p>A <code>Buffer</code>, <code>TypedArray</code>, <code>DataView</code>, or <code>string</code> was provided as stdio input to
1066
+ * an asynchronous fork. See the documentation for the <a href="child_process.html"><code>child_process</code></a> module
1067
+ * for more information.</p>
1068
+ * <p><a id="ERR_INVALID_THIS"></a></p>
1069
+ */
1070
+ ERR_INVALID_SYNC_FORK_INPUT = "ERR_INVALID_SYNC_FORK_INPUT",
1071
+ /**
1072
+ * <p>A Node.js API function was called with an incompatible <code>this</code> value.</p>
1073
+ * <pre><code class="language-js">const urlSearchParams = new URLSearchParams('foo=bar&#x26;baz=new');
1074
+ *
1075
+ * const buf = Buffer.alloc(1);
1076
+ * urlSearchParams.has.call(buf, 'foo');
1077
+ * // Throws a TypeError with code 'ERR_INVALID_THIS'
1078
+ * </code></pre>
1079
+ * <p><a id="ERR_INVALID_TUPLE"></a></p>
1080
+ */
1081
+ ERR_INVALID_THIS = "ERR_INVALID_THIS",
1082
+ /**
1083
+ * <p>An element in the <code>iterable</code> provided to the <a href="url.html#the-whatwg-url-api">WHATWG</a>
1084
+ * <a href="url.html#new-urlsearchparamsiterable"><code>URLSearchParams</code> constructor</a> did not
1085
+ * represent a <code>[name, value]</code> tuple – that is, if an element is not iterable, or
1086
+ * does not consist of exactly two elements.</p>
1087
+ * <p><a id="ERR_INVALID_TYPESCRIPT_SYNTAX"></a></p>
1088
+ */
1089
+ ERR_INVALID_TUPLE = "ERR_INVALID_TUPLE",
1090
+ /**
1091
+ * <p>The provided TypeScript syntax is not valid.</p>
1092
+ * <p><a id="ERR_INVALID_URI"></a></p>
1093
+ */
1094
+ ERR_INVALID_TYPESCRIPT_SYNTAX = "ERR_INVALID_TYPESCRIPT_SYNTAX",
1095
+ /**
1096
+ * <p>An invalid URI was passed.</p>
1097
+ * <p><a id="ERR_INVALID_URL"></a></p>
1098
+ */
1099
+ ERR_INVALID_URI = "ERR_INVALID_URI",
1100
+ /**
1101
+ * <p>An invalid URL was passed to the <a href="url.html#the-whatwg-url-api">WHATWG</a> <a href="url.html#new-urlinput-base"><code>URL</code>
1102
+ * constructor</a> or the legacy <a href="url.html#urlparseurlstring-parsequerystring-slashesdenotehost"><code>url.parse()</code></a> to be parsed.
1103
+ * The thrown error object typically has an additional property <code>'input'</code> that
1104
+ * contains the URL that failed to parse.</p>
1105
+ * <p><a id="ERR_INVALID_URL_PATTERN"></a></p>
1106
+ */
1107
+ ERR_INVALID_URL = "ERR_INVALID_URL",
1108
+ /**
1109
+ * <p>An invalid URLPattern was passed to the <a href="url.html#the-whatwg-url-api">WHATWG</a> [<code>URLPattern</code>
1110
+ * constructor][<code>new URLPattern(input)</code>] to be parsed.</p>
1111
+ * <p><a id="ERR_INVALID_URL_SCHEME"></a></p>
1112
+ */
1113
+ ERR_INVALID_URL_PATTERN = "ERR_INVALID_URL_PATTERN",
1114
+ /**
1115
+ * <p>An attempt was made to use a URL of an incompatible scheme (protocol) for a
1116
+ * specific purpose. It is only used in the <a href="url.html#the-whatwg-url-api">WHATWG URL API</a> support in the
1117
+ * <a href="fs.html"><code>fs</code></a> module (which only accepts URLs with <code>'file'</code> scheme), but may be used
1118
+ * in other Node.js APIs as well in the future.</p>
1119
+ * <p><a id="ERR_IPC_CHANNEL_CLOSED"></a></p>
1120
+ */
1121
+ ERR_INVALID_URL_SCHEME = "ERR_INVALID_URL_SCHEME",
1122
+ /**
1123
+ * <p>An attempt was made to use an IPC communication channel that was already closed.</p>
1124
+ * <p><a id="ERR_IPC_DISCONNECTED"></a></p>
1125
+ */
1126
+ ERR_IPC_CHANNEL_CLOSED = "ERR_IPC_CHANNEL_CLOSED",
1127
+ /**
1128
+ * <p>An attempt was made to disconnect an IPC communication channel that was already
1129
+ * disconnected. See the documentation for the <a href="child_process.html"><code>child_process</code></a> module
1130
+ * for more information.</p>
1131
+ * <p><a id="ERR_IPC_ONE_PIPE"></a></p>
1132
+ */
1133
+ ERR_IPC_DISCONNECTED = "ERR_IPC_DISCONNECTED",
1134
+ /**
1135
+ * <p>An attempt was made to create a child Node.js process using more than one IPC
1136
+ * communication channel. See the documentation for the <a href="child_process.html"><code>child_process</code></a> module
1137
+ * for more information.</p>
1138
+ * <p><a id="ERR_IPC_SYNC_FORK"></a></p>
1139
+ */
1140
+ ERR_IPC_ONE_PIPE = "ERR_IPC_ONE_PIPE",
1141
+ /**
1142
+ * <p>An attempt was made to open an IPC communication channel with a synchronously
1143
+ * forked Node.js process. See the documentation for the <a href="child_process.html"><code>child_process</code></a> module
1144
+ * for more information.</p>
1145
+ * <p><a id="ERR_IP_BLOCKED"></a></p>
1146
+ */
1147
+ ERR_IPC_SYNC_FORK = "ERR_IPC_SYNC_FORK",
1148
+ /**
1149
+ * <p>IP is blocked by <code>net.BlockList</code>.</p>
1150
+ * <p><a id="ERR_LOADER_CHAIN_INCOMPLETE"></a></p>
1151
+ */
1152
+ ERR_IP_BLOCKED = "ERR_IP_BLOCKED",
1153
+ /**
1154
+ * <p>An ESM loader hook returned without calling <code>next()</code> and without explicitly
1155
+ * signaling a short circuit.</p>
1156
+ * <p><a id="ERR_LOAD_SQLITE_EXTENSION"></a></p>
1157
+ */
1158
+ ERR_LOADER_CHAIN_INCOMPLETE = "ERR_LOADER_CHAIN_INCOMPLETE",
1159
+ /**
1160
+ * <p>An error occurred while loading a SQLite extension.</p>
1161
+ * <p><a id="ERR_MEMORY_ALLOCATION_FAILED"></a></p>
1162
+ */
1163
+ ERR_LOAD_SQLITE_EXTENSION = "ERR_LOAD_SQLITE_EXTENSION",
1164
+ /**
1165
+ * <p>An attempt was made to allocate memory (usually in the C++ layer) but it
1166
+ * failed.</p>
1167
+ * <p><a id="ERR_MESSAGE_TARGET_CONTEXT_UNAVAILABLE"></a></p>
1168
+ */
1169
+ ERR_MEMORY_ALLOCATION_FAILED = "ERR_MEMORY_ALLOCATION_FAILED",
1170
+ /**
1171
+ * <p>A message posted to a <a href="worker_threads.html#class-messageport"><code>MessagePort</code></a> could not be deserialized in the target
1172
+ * <a href="vm.html">vm</a> <code>Context</code>. Not all Node.js objects can be successfully instantiated in
1173
+ * any context at this time, and attempting to transfer them using <code>postMessage()</code>
1174
+ * can fail on the receiving side in that case.</p>
1175
+ * <p><a id="ERR_METHOD_NOT_IMPLEMENTED"></a></p>
1176
+ */
1177
+ ERR_MESSAGE_TARGET_CONTEXT_UNAVAILABLE = "ERR_MESSAGE_TARGET_CONTEXT_UNAVAILABLE",
1178
+ /**
1179
+ * <p>A method is required but not implemented.</p>
1180
+ * <p><a id="ERR_MISSING_ARGS"></a></p>
1181
+ */
1182
+ ERR_METHOD_NOT_IMPLEMENTED = "ERR_METHOD_NOT_IMPLEMENTED",
1183
+ /**
1184
+ * <p>A required argument of a Node.js API was not passed. This is only used for
1185
+ * strict compliance with the API specification (which in some cases may accept
1186
+ * <code>func(undefined)</code> but not <code>func()</code>). In most native Node.js APIs,
1187
+ * <code>func(undefined)</code> and <code>func()</code> are treated identically, and the
1188
+ * <a href="#err_invalid_arg_type"><code>ERR_INVALID_ARG_TYPE</code></a> error code may be used instead.</p>
1189
+ * <p><a id="ERR_MISSING_OPTION"></a></p>
1190
+ */
1191
+ ERR_MISSING_ARGS = "ERR_MISSING_ARGS",
1192
+ /**
1193
+ * <p>For APIs that accept options objects, some options might be mandatory. This code
1194
+ * is thrown if a required option is missing.</p>
1195
+ * <p><a id="ERR_MISSING_PASSPHRASE"></a></p>
1196
+ */
1197
+ ERR_MISSING_OPTION = "ERR_MISSING_OPTION",
1198
+ /**
1199
+ * <p>An attempt was made to read an encrypted key without specifying a passphrase.</p>
1200
+ * <p><a id="ERR_MISSING_PLATFORM_FOR_WORKER"></a></p>
1201
+ */
1202
+ ERR_MISSING_PASSPHRASE = "ERR_MISSING_PASSPHRASE",
1203
+ /**
1204
+ * <p>The V8 platform used by this instance of Node.js does not support creating
1205
+ * Workers. This is caused by lack of embedder support for Workers. In particular,
1206
+ * this error will not occur with standard builds of Node.js.</p>
1207
+ * <p><a id="ERR_MODULE_NOT_FOUND"></a></p>
1208
+ */
1209
+ ERR_MISSING_PLATFORM_FOR_WORKER = "ERR_MISSING_PLATFORM_FOR_WORKER",
1210
+ /**
1211
+ * <p>A module file could not be resolved by the ECMAScript modules loader while
1212
+ * attempting an <code>import</code> operation or when loading the program entry point.</p>
1213
+ * <p><a id="ERR_MULTIPLE_CALLBACK"></a></p>
1214
+ */
1215
+ ERR_MODULE_NOT_FOUND = "ERR_MODULE_NOT_FOUND",
1216
+ /**
1217
+ * <p>A callback was called more than once.</p>
1218
+ * <p>A callback is almost always meant to only be called once as the query
1219
+ * can either be fulfilled or rejected but not both at the same time. The latter
1220
+ * would be possible by calling a callback more than once.</p>
1221
+ * <p><a id="ERR_NAPI_CONS_FUNCTION"></a></p>
1222
+ */
1223
+ ERR_MULTIPLE_CALLBACK = "ERR_MULTIPLE_CALLBACK",
1224
+ /**
1225
+ * <p>While using <code>Node-API</code>, a constructor passed was not a function.</p>
1226
+ * <p><a id="ERR_NAPI_INVALID_DATAVIEW_ARGS"></a></p>
1227
+ */
1228
+ ERR_NAPI_CONS_FUNCTION = "ERR_NAPI_CONS_FUNCTION",
1229
+ /**
1230
+ * <p>While calling <code>napi_create_dataview()</code>, a given <code>offset</code> was outside the bounds
1231
+ * of the dataview or <code>offset + length</code> was larger than a length of given <code>buffer</code>.</p>
1232
+ * <p><a id="ERR_NAPI_INVALID_TYPEDARRAY_ALIGNMENT"></a></p>
1233
+ */
1234
+ ERR_NAPI_INVALID_DATAVIEW_ARGS = "ERR_NAPI_INVALID_DATAVIEW_ARGS",
1235
+ /**
1236
+ * <p>While calling <code>napi_create_typedarray()</code>, the provided <code>offset</code> was not a
1237
+ * multiple of the element size.</p>
1238
+ * <p><a id="ERR_NAPI_INVALID_TYPEDARRAY_LENGTH"></a></p>
1239
+ */
1240
+ ERR_NAPI_INVALID_TYPEDARRAY_ALIGNMENT = "ERR_NAPI_INVALID_TYPEDARRAY_ALIGNMENT",
1241
+ /**
1242
+ * <p>While calling <code>napi_create_typedarray()</code>, <code>(length * size_of_element) + byte_offset</code> was larger than the length of given <code>buffer</code>.</p>
1243
+ * <p><a id="ERR_NAPI_TSFN_CALL_JS"></a></p>
1244
+ */
1245
+ ERR_NAPI_INVALID_TYPEDARRAY_LENGTH = "ERR_NAPI_INVALID_TYPEDARRAY_LENGTH",
1246
+ /**
1247
+ * <p>An error occurred while invoking the JavaScript portion of the thread-safe
1248
+ * function.</p>
1249
+ * <p><a id="ERR_NAPI_TSFN_GET_UNDEFINED"></a></p>
1250
+ */
1251
+ ERR_NAPI_TSFN_CALL_JS = "ERR_NAPI_TSFN_CALL_JS",
1252
+ /**
1253
+ * <p>An error occurred while attempting to retrieve the JavaScript <code>undefined</code>
1254
+ * value.</p>
1255
+ * <p><a id="ERR_NON_CONTEXT_AWARE_DISABLED"></a></p>
1256
+ */
1257
+ ERR_NAPI_TSFN_GET_UNDEFINED = "ERR_NAPI_TSFN_GET_UNDEFINED",
1258
+ /**
1259
+ * <p>A non-context-aware native addon was loaded in a process that disallows them.</p>
1260
+ * <p><a id="ERR_NOT_BUILDING_SNAPSHOT"></a></p>
1261
+ */
1262
+ ERR_NON_CONTEXT_AWARE_DISABLED = "ERR_NON_CONTEXT_AWARE_DISABLED",
1263
+ /**
1264
+ * <p>An attempt was made to use operations that can only be used when building
1265
+ * V8 startup snapshot even though Node.js isn't building one.</p>
1266
+ * <p><a id="ERR_NOT_IN_SINGLE_EXECUTABLE_APPLICATION"></a></p>
1267
+ */
1268
+ ERR_NOT_BUILDING_SNAPSHOT = "ERR_NOT_BUILDING_SNAPSHOT",
1269
+ /**
1270
+ * <p>The operation cannot be performed when it's not in a single-executable
1271
+ * application.</p>
1272
+ * <p><a id="ERR_NOT_SUPPORTED_IN_SNAPSHOT"></a></p>
1273
+ */
1274
+ ERR_NOT_IN_SINGLE_EXECUTABLE_APPLICATION = "ERR_NOT_IN_SINGLE_EXECUTABLE_APPLICATION",
1275
+ /**
1276
+ * <p>An attempt was made to perform operations that are not supported when
1277
+ * building a startup snapshot.</p>
1278
+ * <p><a id="ERR_NO_CRYPTO"></a></p>
1279
+ */
1280
+ ERR_NOT_SUPPORTED_IN_SNAPSHOT = "ERR_NOT_SUPPORTED_IN_SNAPSHOT",
1281
+ /**
1282
+ * <p>An attempt was made to use crypto features while Node.js was not compiled with
1283
+ * OpenSSL crypto support.</p>
1284
+ * <p><a id="ERR_NO_ICU"></a></p>
1285
+ */
1286
+ ERR_NO_CRYPTO = "ERR_NO_CRYPTO",
1287
+ /**
1288
+ * <p>An attempt was made to use features that require <a href="intl.html#internationalization-support">ICU</a>, but Node.js was not
1289
+ * compiled with ICU support.</p>
1290
+ * <p><a id="ERR_NO_TYPESCRIPT"></a></p>
1291
+ */
1292
+ ERR_NO_ICU = "ERR_NO_ICU",
1293
+ /**
1294
+ * <p>An attempt was made to use features that require <a href="typescript.html#type-stripping">Native TypeScript support</a>, but Node.js was not
1295
+ * compiled with TypeScript support.</p>
1296
+ * <p><a id="ERR_OPERATION_FAILED"></a></p>
1297
+ */
1298
+ ERR_NO_TYPESCRIPT = "ERR_NO_TYPESCRIPT",
1299
+ /**
1300
+ * <p>An operation failed. This is typically used to signal the general failure
1301
+ * of an asynchronous operation.</p>
1302
+ * <p><a id="ERR_OPTIONS_BEFORE_BOOTSTRAPPING"></a></p>
1303
+ */
1304
+ ERR_OPERATION_FAILED = "ERR_OPERATION_FAILED",
1305
+ /**
1306
+ * <p>An attempt was made to get options before the bootstrapping was completed.</p>
1307
+ * <p><a id="ERR_OUT_OF_RANGE"></a></p>
1308
+ */
1309
+ ERR_OPTIONS_BEFORE_BOOTSTRAPPING = "ERR_OPTIONS_BEFORE_BOOTSTRAPPING",
1310
+ /**
1311
+ * <p>A given value is out of the accepted range.</p>
1312
+ * <p><a id="ERR_PACKAGE_IMPORT_NOT_DEFINED"></a></p>
1313
+ */
1314
+ ERR_OUT_OF_RANGE = "ERR_OUT_OF_RANGE",
1315
+ /**
1316
+ * <p>The <code>package.json</code> <a href="packages.html#imports"><code>"imports"</code></a> field does not define the given internal
1317
+ * package specifier mapping.</p>
1318
+ * <p><a id="ERR_PACKAGE_PATH_NOT_EXPORTED"></a></p>
1319
+ */
1320
+ ERR_PACKAGE_IMPORT_NOT_DEFINED = "ERR_PACKAGE_IMPORT_NOT_DEFINED",
1321
+ /**
1322
+ * <p>The <code>package.json</code> <a href="packages.html#exports"><code>"exports"</code></a> field does not export the requested subpath.
1323
+ * Because exports are encapsulated, private internal modules that are not exported
1324
+ * cannot be imported through the package resolution, unless using an absolute URL.</p>
1325
+ * <p><a id="ERR_PARSE_ARGS_INVALID_OPTION_VALUE"></a></p>
1326
+ */
1327
+ ERR_PACKAGE_PATH_NOT_EXPORTED = "ERR_PACKAGE_PATH_NOT_EXPORTED",
1328
+ /**
1329
+ * <p>When <code>strict</code> set to <code>true</code>, thrown by <a href="util.html#utilparseargsconfig"><code>util.parseArgs()</code></a> if a <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Boolean_type" class="type">&lt;boolean&gt;</a>
1330
+ * value is provided for an option of type <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type">&lt;string&gt;</a>, or if a <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type">&lt;string&gt;</a>
1331
+ * value is provided for an option of type <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Boolean_type" class="type">&lt;boolean&gt;</a>.</p>
1332
+ * <p><a id="ERR_PARSE_ARGS_UNEXPECTED_POSITIONAL"></a></p>
1333
+ */
1334
+ ERR_PARSE_ARGS_INVALID_OPTION_VALUE = "ERR_PARSE_ARGS_INVALID_OPTION_VALUE",
1335
+ /**
1336
+ * <p>Thrown by <a href="util.html#utilparseargsconfig"><code>util.parseArgs()</code></a>, when a positional argument is provided and
1337
+ * <code>allowPositionals</code> is set to <code>false</code>.</p>
1338
+ * <p><a id="ERR_PARSE_ARGS_UNKNOWN_OPTION"></a></p>
1339
+ */
1340
+ ERR_PARSE_ARGS_UNEXPECTED_POSITIONAL = "ERR_PARSE_ARGS_UNEXPECTED_POSITIONAL",
1341
+ /**
1342
+ * <p>When <code>strict</code> set to <code>true</code>, thrown by <a href="util.html#utilparseargsconfig"><code>util.parseArgs()</code></a> if an argument
1343
+ * is not configured in <code>options</code>.</p>
1344
+ * <p><a id="ERR_PERFORMANCE_INVALID_TIMESTAMP"></a></p>
1345
+ */
1346
+ ERR_PARSE_ARGS_UNKNOWN_OPTION = "ERR_PARSE_ARGS_UNKNOWN_OPTION",
1347
+ /**
1348
+ * <p>An invalid timestamp value was provided for a performance mark or measure.</p>
1349
+ * <p><a id="ERR_PERFORMANCE_MEASURE_INVALID_OPTIONS"></a></p>
1350
+ */
1351
+ ERR_PERFORMANCE_INVALID_TIMESTAMP = "ERR_PERFORMANCE_INVALID_TIMESTAMP",
1352
+ /**
1353
+ * <p>Invalid options were provided for a performance measure.</p>
1354
+ * <p><a id="ERR_PROTO_ACCESS"></a></p>
1355
+ */
1356
+ ERR_PERFORMANCE_MEASURE_INVALID_OPTIONS = "ERR_PERFORMANCE_MEASURE_INVALID_OPTIONS",
1357
+ /**
1358
+ * <p>Accessing <code>Object.prototype.__proto__</code> has been forbidden using
1359
+ * <a href="cli.html#--disable-protomode"><code>--disable-proto=throw</code></a>. <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/getPrototypeOf"><code>Object.getPrototypeOf</code></a> and
1360
+ * <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/setPrototypeOf"><code>Object.setPrototypeOf</code></a> should be used to get and set the prototype of an
1361
+ * object.</p>
1362
+ * <p><a id="ERR_QUIC_APPLICATION_ERROR"></a></p>
1363
+ */
1364
+ ERR_PROTO_ACCESS = "ERR_PROTO_ACCESS",
1365
+ /**
1366
+ * <p>A QUIC application error occurred.</p>
1367
+ * <p><a id="ERR_QUIC_CONNECTION_FAILED"></a></p>
1368
+ */
1369
+ ERR_QUIC_APPLICATION_ERROR = "ERR_QUIC_APPLICATION_ERROR",
1370
+ /**
1371
+ * <p>Establishing a QUIC connection failed.</p>
1372
+ * <p><a id="ERR_QUIC_ENDPOINT_CLOSED"></a></p>
1373
+ */
1374
+ ERR_QUIC_CONNECTION_FAILED = "ERR_QUIC_CONNECTION_FAILED",
1375
+ /**
1376
+ * <p>A QUIC Endpoint closed with an error.</p>
1377
+ * <p><a id="ERR_QUIC_OPEN_STREAM_FAILED"></a></p>
1378
+ */
1379
+ ERR_QUIC_ENDPOINT_CLOSED = "ERR_QUIC_ENDPOINT_CLOSED",
1380
+ /**
1381
+ * <p>Opening a QUIC stream failed.</p>
1382
+ * <p><a id="ERR_QUIC_TRANSPORT_ERROR"></a></p>
1383
+ */
1384
+ ERR_QUIC_OPEN_STREAM_FAILED = "ERR_QUIC_OPEN_STREAM_FAILED",
1385
+ /**
1386
+ * <p>A QUIC transport error occurred.</p>
1387
+ * <p><a id="ERR_QUIC_VERSION_NEGOTIATION_ERROR"></a></p>
1388
+ */
1389
+ ERR_QUIC_TRANSPORT_ERROR = "ERR_QUIC_TRANSPORT_ERROR",
1390
+ /**
1391
+ * <p>A QUIC session failed because version negotiation is required.</p>
1392
+ * <p><a id="ERR_REQUIRE_ASYNC_MODULE"></a></p>
1393
+ */
1394
+ ERR_QUIC_VERSION_NEGOTIATION_ERROR = "ERR_QUIC_VERSION_NEGOTIATION_ERROR",
1395
+ /**
1396
+ * <p>When trying to <code>require()</code> a <a href="esm.html">ES Module</a>, the module turns out to be asynchronous.
1397
+ * That is, it contains top-level await.</p>
1398
+ * <p>To see where the top-level await is, use
1399
+ * <code>--experimental-print-required-tla</code> (this would execute the modules
1400
+ * before looking for the top-level awaits).</p>
1401
+ * <p><a id="ERR_REQUIRE_CYCLE_MODULE"></a></p>
1402
+ */
1403
+ ERR_REQUIRE_ASYNC_MODULE = "ERR_REQUIRE_ASYNC_MODULE",
1404
+ /**
1405
+ * <p>When trying to <code>require()</code> a <a href="esm.html">ES Module</a>, a CommonJS to ESM or ESM to CommonJS edge
1406
+ * participates in an immediate cycle.
1407
+ * This is not allowed because ES Modules cannot be evaluated while they are
1408
+ * already being evaluated.</p>
1409
+ * <p>To avoid the cycle, the <code>require()</code> call involved in a cycle should not happen
1410
+ * at the top-level of either an ES Module (via <code>createRequire()</code>) or a CommonJS
1411
+ * module, and should be done lazily in an inner function.</p>
1412
+ * <p><a id="ERR_REQUIRE_ESM"></a></p>
1413
+ */
1414
+ ERR_REQUIRE_CYCLE_MODULE = "ERR_REQUIRE_CYCLE_MODULE",
1415
+ /**
1416
+ * <p>An attempt was made to <code>require()</code> an <a href="esm.html">ES Module</a>.</p>
1417
+ * <p>This error has been deprecated since <code>require()</code> now supports loading synchronous
1418
+ * ES modules. When <code>require()</code> encounters an ES module that contains top-level
1419
+ * <code>await</code>, it will throw <a href="#err_require_async_module"><code>ERR_REQUIRE_ASYNC_MODULE</code></a> instead.</p>
1420
+ * <p><a id="ERR_SCRIPT_EXECUTION_INTERRUPTED"></a></p>
1421
+ */
1422
+ ERR_REQUIRE_ESM = "ERR_REQUIRE_ESM",
1423
+ /**
1424
+ * <p>Script execution was interrupted by <code>SIGINT</code> (For
1425
+ * example, <kbd>Ctrl</kbd>+<kbd>C</kbd> was pressed.)</p>
1426
+ * <p><a id="ERR_SCRIPT_EXECUTION_TIMEOUT"></a></p>
1427
+ */
1428
+ ERR_SCRIPT_EXECUTION_INTERRUPTED = "ERR_SCRIPT_EXECUTION_INTERRUPTED",
1429
+ /**
1430
+ * <p>Script execution timed out, possibly due to bugs in the script being executed.</p>
1431
+ * <p><a id="ERR_SERVER_ALREADY_LISTEN"></a></p>
1432
+ */
1433
+ ERR_SCRIPT_EXECUTION_TIMEOUT = "ERR_SCRIPT_EXECUTION_TIMEOUT",
1434
+ /**
1435
+ * <p>The <a href="net.html#serverlisten"><code>server.listen()</code></a> method was called while a <code>net.Server</code> was already
1436
+ * listening. This applies to all instances of <code>net.Server</code>, including HTTP, HTTPS,
1437
+ * and HTTP/2 <code>Server</code> instances.</p>
1438
+ * <p><a id="ERR_SERVER_NOT_RUNNING"></a></p>
1439
+ */
1440
+ ERR_SERVER_ALREADY_LISTEN = "ERR_SERVER_ALREADY_LISTEN",
1441
+ /**
1442
+ * <p>The <a href="net.html#serverclosecallback"><code>server.close()</code></a> method was called when a <code>net.Server</code> was not
1443
+ * running. This applies to all instances of <code>net.Server</code>, including HTTP, HTTPS,
1444
+ * and HTTP/2 <code>Server</code> instances.</p>
1445
+ * <p><a id="ERR_SINGLE_EXECUTABLE_APPLICATION_ASSET_NOT_FOUND"></a></p>
1446
+ */
1447
+ ERR_SERVER_NOT_RUNNING = "ERR_SERVER_NOT_RUNNING",
1448
+ /**
1449
+ * <p>A key was passed to single executable application APIs to identify an asset,
1450
+ * but no match could be found.</p>
1451
+ * <p><a id="ERR_SOCKET_ALREADY_BOUND"></a></p>
1452
+ */
1453
+ ERR_SINGLE_EXECUTABLE_APPLICATION_ASSET_NOT_FOUND = "ERR_SINGLE_EXECUTABLE_APPLICATION_ASSET_NOT_FOUND",
1454
+ /**
1455
+ * <p>An attempt was made to bind a socket that has already been bound.</p>
1456
+ * <p><a id="ERR_SOCKET_BAD_BUFFER_SIZE"></a></p>
1457
+ */
1458
+ ERR_SOCKET_ALREADY_BOUND = "ERR_SOCKET_ALREADY_BOUND",
1459
+ /**
1460
+ * <p>An invalid (negative) size was passed for either the <code>recvBufferSize</code> or
1461
+ * <code>sendBufferSize</code> options in <a href="dgram.html#dgramcreatesocketoptions-callback"><code>dgram.createSocket()</code></a>.</p>
1462
+ * <p><a id="ERR_SOCKET_BAD_PORT"></a></p>
1463
+ */
1464
+ ERR_SOCKET_BAD_BUFFER_SIZE = "ERR_SOCKET_BAD_BUFFER_SIZE",
1465
+ /**
1466
+ * <p>An API function expecting a port >= 0 and &#x3C; 65536 received an invalid value.</p>
1467
+ * <p><a id="ERR_SOCKET_BAD_TYPE"></a></p>
1468
+ */
1469
+ ERR_SOCKET_BAD_PORT = "ERR_SOCKET_BAD_PORT",
1470
+ /**
1471
+ * <p>An API function expecting a socket type (<code>udp4</code> or <code>udp6</code>) received an invalid
1472
+ * value.</p>
1473
+ * <p><a id="ERR_SOCKET_BUFFER_SIZE"></a></p>
1474
+ */
1475
+ ERR_SOCKET_BAD_TYPE = "ERR_SOCKET_BAD_TYPE",
1476
+ /**
1477
+ * <p>While using <a href="dgram.html#dgramcreatesocketoptions-callback"><code>dgram.createSocket()</code></a>, the size of the receive or send <code>Buffer</code>
1478
+ * could not be determined.</p>
1479
+ * <p><a id="ERR_SOCKET_CLOSED"></a></p>
1480
+ */
1481
+ ERR_SOCKET_BUFFER_SIZE = "ERR_SOCKET_BUFFER_SIZE",
1482
+ /**
1483
+ * <p>An attempt was made to operate on an already closed socket.</p>
1484
+ * <p><a id="ERR_SOCKET_CLOSED_BEFORE_CONNECTION"></a></p>
1485
+ */
1486
+ ERR_SOCKET_CLOSED = "ERR_SOCKET_CLOSED",
1487
+ /**
1488
+ * <p>When calling <a href="net.html#socketwritedata-encoding-callback"><code>net.Socket.write()</code></a> on a connecting socket and the socket was
1489
+ * closed before the connection was established.</p>
1490
+ * <p><a id="ERR_SOCKET_CONNECTION_TIMEOUT"></a></p>
1491
+ */
1492
+ ERR_SOCKET_CLOSED_BEFORE_CONNECTION = "ERR_SOCKET_CLOSED_BEFORE_CONNECTION",
1493
+ /**
1494
+ * <p>The socket was unable to connect to any address returned by the DNS within the
1495
+ * allowed timeout when using the family autoselection algorithm.</p>
1496
+ * <p><a id="ERR_SOCKET_DGRAM_IS_CONNECTED"></a></p>
1497
+ */
1498
+ ERR_SOCKET_CONNECTION_TIMEOUT = "ERR_SOCKET_CONNECTION_TIMEOUT",
1499
+ /**
1500
+ * <p>A <a href="dgram.html#socketconnectport-address-callback"><code>dgram.connect()</code></a> call was made on an already connected socket.</p>
1501
+ * <p><a id="ERR_SOCKET_DGRAM_NOT_CONNECTED"></a></p>
1502
+ */
1503
+ ERR_SOCKET_DGRAM_IS_CONNECTED = "ERR_SOCKET_DGRAM_IS_CONNECTED",
1504
+ /**
1505
+ * <p>A <a href="dgram.html#socketdisconnect"><code>dgram.disconnect()</code></a> or <a href="dgram.html#socketremoteaddress"><code>dgram.remoteAddress()</code></a> call was made on a
1506
+ * disconnected socket.</p>
1507
+ * <p><a id="ERR_SOCKET_DGRAM_NOT_RUNNING"></a></p>
1508
+ */
1509
+ ERR_SOCKET_DGRAM_NOT_CONNECTED = "ERR_SOCKET_DGRAM_NOT_CONNECTED",
1510
+ /**
1511
+ * <p>A call was made and the UDP subsystem was not running.</p>
1512
+ * <p><a id="ERR_SOURCE_MAP_CORRUPT"></a></p>
1513
+ */
1514
+ ERR_SOCKET_DGRAM_NOT_RUNNING = "ERR_SOCKET_DGRAM_NOT_RUNNING",
1515
+ /**
1516
+ * <p>The source map could not be parsed because it does not exist, or is corrupt.</p>
1517
+ * <p><a id="ERR_SOURCE_MAP_MISSING_SOURCE"></a></p>
1518
+ */
1519
+ ERR_SOURCE_MAP_CORRUPT = "ERR_SOURCE_MAP_CORRUPT",
1520
+ /**
1521
+ * <p>A file imported from a source map was not found.</p>
1522
+ * <p><a id="ERR_SOURCE_PHASE_NOT_DEFINED"></a></p>
1523
+ */
1524
+ ERR_SOURCE_MAP_MISSING_SOURCE = "ERR_SOURCE_MAP_MISSING_SOURCE",
1525
+ /**
1526
+ * <p>The provided module import does not provide a source phase imports representation for source phase
1527
+ * import syntax <code>import source x from 'x'</code> or <code>import.source(x)</code>.</p>
1528
+ * <p><a id="ERR_SQLITE_ERROR"></a></p>
1529
+ */
1530
+ ERR_SOURCE_PHASE_NOT_DEFINED = "ERR_SOURCE_PHASE_NOT_DEFINED",
1531
+ /**
1532
+ * <p>An error was returned from <a href="sqlite.html">SQLite</a>.</p>
1533
+ * <p><a id="ERR_SRI_PARSE"></a></p>
1534
+ */
1535
+ ERR_SQLITE_ERROR = "ERR_SQLITE_ERROR",
1536
+ /**
1537
+ * <p>A string was provided for a Subresource Integrity check, but was unable to be
1538
+ * parsed. Check the format of integrity attributes by looking at the
1539
+ * <a href="https://www.w3.org/TR/SRI/#the-integrity-attribute">Subresource Integrity specification</a>.</p>
1540
+ * <p><a id="ERR_STREAM_ALREADY_FINISHED"></a></p>
1541
+ */
1542
+ ERR_SRI_PARSE = "ERR_SRI_PARSE",
1543
+ /**
1544
+ * <p>A stream method was called that cannot complete because the stream was
1545
+ * finished.</p>
1546
+ * <p><a id="ERR_STREAM_CANNOT_PIPE"></a></p>
1547
+ */
1548
+ ERR_STREAM_ALREADY_FINISHED = "ERR_STREAM_ALREADY_FINISHED",
1549
+ /**
1550
+ * <p>An attempt was made to call <a href="stream.html#readablepipedestination-options"><code>stream.pipe()</code></a> on a <a href="stream.html#class-streamwritable"><code>Writable</code></a> stream.</p>
1551
+ * <p><a id="ERR_STREAM_DESTROYED"></a></p>
1552
+ */
1553
+ ERR_STREAM_CANNOT_PIPE = "ERR_STREAM_CANNOT_PIPE",
1554
+ /**
1555
+ * <p>A stream method was called that cannot complete because the stream was
1556
+ * destroyed using <code>stream.destroy()</code>.</p>
1557
+ * <p><a id="ERR_STREAM_NULL_VALUES"></a></p>
1558
+ */
1559
+ ERR_STREAM_DESTROYED = "ERR_STREAM_DESTROYED",
1560
+ /**
1561
+ * <p>An attempt was made to call <a href="stream.html#writablewritechunk-encoding-callback"><code>stream.write()</code></a> with a <code>null</code> chunk.</p>
1562
+ * <p><a id="ERR_STREAM_PREMATURE_CLOSE"></a></p>
1563
+ */
1564
+ ERR_STREAM_NULL_VALUES = "ERR_STREAM_NULL_VALUES",
1565
+ /**
1566
+ * <p>An error returned by <code>stream.finished()</code> and <code>stream.pipeline()</code>, when a stream
1567
+ * or a pipeline ends non gracefully with no explicit error.</p>
1568
+ * <p><a id="ERR_STREAM_PUSH_AFTER_EOF"></a></p>
1569
+ */
1570
+ ERR_STREAM_PREMATURE_CLOSE = "ERR_STREAM_PREMATURE_CLOSE",
1571
+ /**
1572
+ * <p>An attempt was made to call <a href="stream.html#readablepushchunk-encoding"><code>stream.push()</code></a> after a <code>null</code>(EOF) had been
1573
+ * pushed to the stream.</p>
1574
+ * <p><a id="ERR_STREAM_UNABLE_TO_PIPE"></a></p>
1575
+ */
1576
+ ERR_STREAM_PUSH_AFTER_EOF = "ERR_STREAM_PUSH_AFTER_EOF",
1577
+ /**
1578
+ * <p>An attempt was made to pipe to a closed or destroyed stream in a pipeline.</p>
1579
+ * <p><a id="ERR_STREAM_UNSHIFT_AFTER_END_EVENT"></a></p>
1580
+ */
1581
+ ERR_STREAM_UNABLE_TO_PIPE = "ERR_STREAM_UNABLE_TO_PIPE",
1582
+ /**
1583
+ * <p>An attempt was made to call <a href="stream.html#readableunshiftchunk-encoding"><code>stream.unshift()</code></a> after the <code>'end'</code> event was
1584
+ * emitted.</p>
1585
+ * <p><a id="ERR_STREAM_WRAP"></a></p>
1586
+ */
1587
+ ERR_STREAM_UNSHIFT_AFTER_END_EVENT = "ERR_STREAM_UNSHIFT_AFTER_END_EVENT",
1588
+ /**
1589
+ * <p>Prevents an abort if a string decoder was set on the Socket or if the decoder
1590
+ * is in <code>objectMode</code>.</p>
1591
+ * <pre><code class="language-js">const Socket = require('node:net').Socket;
1592
+ * const instance = new Socket();
1593
+ *
1594
+ * instance.setEncoding('utf8');
1595
+ * </code></pre>
1596
+ * <p><a id="ERR_STREAM_WRITE_AFTER_END"></a></p>
1597
+ */
1598
+ ERR_STREAM_WRAP = "ERR_STREAM_WRAP",
1599
+ /**
1600
+ * <p>An attempt was made to call <a href="stream.html#writablewritechunk-encoding-callback"><code>stream.write()</code></a> after <code>stream.end()</code> has been
1601
+ * called.</p>
1602
+ * <p><a id="ERR_STRING_TOO_LONG"></a></p>
1603
+ */
1604
+ ERR_STREAM_WRITE_AFTER_END = "ERR_STREAM_WRITE_AFTER_END",
1605
+ /**
1606
+ * <p>An attempt has been made to create a string longer than the maximum allowed
1607
+ * length.</p>
1608
+ * <p><a id="ERR_SYNTHETIC"></a></p>
1609
+ */
1610
+ ERR_STRING_TOO_LONG = "ERR_STRING_TOO_LONG",
1611
+ /**
1612
+ * <p>An artificial error object used to capture the call stack for diagnostic
1613
+ * reports.</p>
1614
+ * <p><a id="ERR_SYSTEM_ERROR"></a></p>
1615
+ */
1616
+ ERR_SYNTHETIC = "ERR_SYNTHETIC",
1617
+ /**
1618
+ * <p>An unspecified or non-specific system error has occurred within the Node.js
1619
+ * process. The error object will have an <code>err.info</code> object property with
1620
+ * additional details.</p>
1621
+ * <p><a id="ERR_TEST_FAILURE"></a></p>
1622
+ */
1623
+ ERR_SYSTEM_ERROR = "ERR_SYSTEM_ERROR",
1624
+ /**
1625
+ * <p>This error represents a failed test. Additional information about the failure
1626
+ * is available via the <code>cause</code> property. The <code>failureType</code> property specifies
1627
+ * what the test was doing when the failure occurred.</p>
1628
+ * <p><a id="ERR_TLS_ALPN_CALLBACK_INVALID_RESULT"></a></p>
1629
+ */
1630
+ ERR_TEST_FAILURE = "ERR_TEST_FAILURE",
1631
+ /**
1632
+ * <p>This error is thrown when an <code>ALPNCallback</code> returns a value that is not in the
1633
+ * list of ALPN protocols offered by the client.</p>
1634
+ * <p><a id="ERR_TLS_ALPN_CALLBACK_WITH_PROTOCOLS"></a></p>
1635
+ */
1636
+ ERR_TLS_ALPN_CALLBACK_INVALID_RESULT = "ERR_TLS_ALPN_CALLBACK_INVALID_RESULT",
1637
+ /**
1638
+ * <p>This error is thrown when creating a <code>TLSServer</code> if the TLS options include
1639
+ * both <code>ALPNProtocols</code> and <code>ALPNCallback</code>. These options are mutually exclusive.</p>
1640
+ * <p><a id="ERR_TLS_CERT_ALTNAME_FORMAT"></a></p>
1641
+ */
1642
+ ERR_TLS_ALPN_CALLBACK_WITH_PROTOCOLS = "ERR_TLS_ALPN_CALLBACK_WITH_PROTOCOLS",
1643
+ /**
1644
+ * <p>This error is thrown by <code>checkServerIdentity</code> if a user-supplied
1645
+ * <code>subjectaltname</code> property violates encoding rules. Certificate objects produced
1646
+ * by Node.js itself always comply with encoding rules and will never cause
1647
+ * this error.</p>
1648
+ * <p><a id="ERR_TLS_CERT_ALTNAME_INVALID"></a></p>
1649
+ */
1650
+ ERR_TLS_CERT_ALTNAME_FORMAT = "ERR_TLS_CERT_ALTNAME_FORMAT",
1651
+ /**
1652
+ * <p>While using TLS, the host name/IP of the peer did not match any of the
1653
+ * <code>subjectAltNames</code> in its certificate.</p>
1654
+ * <p><a id="ERR_TLS_DH_PARAM_SIZE"></a></p>
1655
+ */
1656
+ ERR_TLS_CERT_ALTNAME_INVALID = "ERR_TLS_CERT_ALTNAME_INVALID",
1657
+ /**
1658
+ * <p>While using TLS, the parameter offered for the Diffie-Hellman (<code>DH</code>)
1659
+ * key-agreement protocol is too small. By default, the key length must be greater
1660
+ * than or equal to 1024 bits to avoid vulnerabilities, even though it is strongly
1661
+ * recommended to use 2048 bits or larger for stronger security.</p>
1662
+ * <p><a id="ERR_TLS_HANDSHAKE_TIMEOUT"></a></p>
1663
+ */
1664
+ ERR_TLS_DH_PARAM_SIZE = "ERR_TLS_DH_PARAM_SIZE",
1665
+ /**
1666
+ * <p>A TLS/SSL handshake timed out. In this case, the server must also abort the
1667
+ * connection.</p>
1668
+ * <p><a id="ERR_TLS_INVALID_CONTEXT"></a></p>
1669
+ */
1670
+ ERR_TLS_HANDSHAKE_TIMEOUT = "ERR_TLS_HANDSHAKE_TIMEOUT",
1671
+ /**
1672
+ * <p>The context must be a <code>SecureContext</code>.</p>
1673
+ * <p><a id="ERR_TLS_INVALID_PROTOCOL_METHOD"></a></p>
1674
+ */
1675
+ ERR_TLS_INVALID_CONTEXT = "ERR_TLS_INVALID_CONTEXT",
1676
+ /**
1677
+ * <p>The specified <code>secureProtocol</code> method is invalid. It is either unknown, or
1678
+ * disabled because it is insecure.</p>
1679
+ * <p><a id="ERR_TLS_INVALID_PROTOCOL_VERSION"></a></p>
1680
+ */
1681
+ ERR_TLS_INVALID_PROTOCOL_METHOD = "ERR_TLS_INVALID_PROTOCOL_METHOD",
1682
+ /**
1683
+ * <p>Valid TLS protocol versions are <code>'TLSv1'</code>, <code>'TLSv1.1'</code>, or <code>'TLSv1.2'</code>.</p>
1684
+ * <p><a id="ERR_TLS_INVALID_STATE"></a></p>
1685
+ */
1686
+ ERR_TLS_INVALID_PROTOCOL_VERSION = "ERR_TLS_INVALID_PROTOCOL_VERSION",
1687
+ /**
1688
+ * <p>The TLS socket must be connected and securely established. Ensure the 'secure'
1689
+ * event is emitted before continuing.</p>
1690
+ * <p><a id="ERR_TLS_PROTOCOL_VERSION_CONFLICT"></a></p>
1691
+ */
1692
+ ERR_TLS_INVALID_STATE = "ERR_TLS_INVALID_STATE",
1693
+ /**
1694
+ * <p>Attempting to set a TLS protocol <code>minVersion</code> or <code>maxVersion</code> conflicts with an
1695
+ * attempt to set the <code>secureProtocol</code> explicitly. Use one mechanism or the other.</p>
1696
+ * <p><a id="ERR_TLS_PSK_SET_IDENTITY_HINT_FAILED"></a></p>
1697
+ */
1698
+ ERR_TLS_PROTOCOL_VERSION_CONFLICT = "ERR_TLS_PROTOCOL_VERSION_CONFLICT",
1699
+ /**
1700
+ * <p>Failed to set PSK identity hint. Hint may be too long.</p>
1701
+ * <p><a id="ERR_TLS_RENEGOTIATION_DISABLED"></a></p>
1702
+ */
1703
+ ERR_TLS_PSK_SET_IDENTITY_HINT_FAILED = "ERR_TLS_PSK_SET_IDENTITY_HINT_FAILED",
1704
+ /**
1705
+ * <p>An attempt was made to renegotiate TLS on a socket instance with renegotiation
1706
+ * disabled.</p>
1707
+ * <p><a id="ERR_TLS_REQUIRED_SERVER_NAME"></a></p>
1708
+ */
1709
+ ERR_TLS_RENEGOTIATION_DISABLED = "ERR_TLS_RENEGOTIATION_DISABLED",
1710
+ /**
1711
+ * <p>While using TLS, the <code>server.addContext()</code> method was called without providing
1712
+ * a host name in the first parameter.</p>
1713
+ * <p><a id="ERR_TLS_SESSION_ATTACK"></a></p>
1714
+ */
1715
+ ERR_TLS_REQUIRED_SERVER_NAME = "ERR_TLS_REQUIRED_SERVER_NAME",
1716
+ /**
1717
+ * <p>An excessive amount of TLS renegotiations is detected, which is a potential
1718
+ * vector for denial-of-service attacks.</p>
1719
+ * <p><a id="ERR_TLS_SNI_FROM_SERVER"></a></p>
1720
+ */
1721
+ ERR_TLS_SESSION_ATTACK = "ERR_TLS_SESSION_ATTACK",
1722
+ /**
1723
+ * <p>An attempt was made to issue Server Name Indication from a TLS server-side
1724
+ * socket, which is only valid from a client.</p>
1725
+ * <p><a id="ERR_TRACE_EVENTS_CATEGORY_REQUIRED"></a></p>
1726
+ */
1727
+ ERR_TLS_SNI_FROM_SERVER = "ERR_TLS_SNI_FROM_SERVER",
1728
+ /**
1729
+ * <p>The <code>trace_events.createTracing()</code> method requires at least one trace event
1730
+ * category.</p>
1731
+ * <p><a id="ERR_TRACE_EVENTS_UNAVAILABLE"></a></p>
1732
+ */
1733
+ ERR_TRACE_EVENTS_CATEGORY_REQUIRED = "ERR_TRACE_EVENTS_CATEGORY_REQUIRED",
1734
+ /**
1735
+ * <p>The <code>node:trace_events</code> module could not be loaded because Node.js was compiled
1736
+ * with the <code>--without-v8-platform</code> flag.</p>
1737
+ * <p><a id="ERR_TRAILING_JUNK_AFTER_STREAM_END"></a></p>
1738
+ */
1739
+ ERR_TRACE_EVENTS_UNAVAILABLE = "ERR_TRACE_EVENTS_UNAVAILABLE",
1740
+ /**
1741
+ * <p>Trailing junk found after the end of the compressed stream.
1742
+ * This error is thrown when extra, unexpected data is detected
1743
+ * after the end of a compressed stream (for example, in zlib
1744
+ * or gzip decompression).</p>
1745
+ * <p><a id="ERR_TRANSFORM_ALREADY_TRANSFORMING"></a></p>
1746
+ */
1747
+ ERR_TRAILING_JUNK_AFTER_STREAM_END = "ERR_TRAILING_JUNK_AFTER_STREAM_END",
1748
+ /**
1749
+ * <p>A <code>Transform</code> stream finished while it was still transforming.</p>
1750
+ * <p><a id="ERR_TRANSFORM_WITH_LENGTH_0"></a></p>
1751
+ */
1752
+ ERR_TRANSFORM_ALREADY_TRANSFORMING = "ERR_TRANSFORM_ALREADY_TRANSFORMING",
1753
+ /**
1754
+ * <p>A <code>Transform</code> stream finished with data still in the write buffer.</p>
1755
+ * <p><a id="ERR_TTY_INIT_FAILED"></a></p>
1756
+ */
1757
+ ERR_TRANSFORM_WITH_LENGTH_0 = "ERR_TRANSFORM_WITH_LENGTH_0",
1758
+ /**
1759
+ * <p>The initialization of a TTY failed due to a system error.</p>
1760
+ * <p><a id="ERR_UNAVAILABLE_DURING_EXIT"></a></p>
1761
+ */
1762
+ ERR_TTY_INIT_FAILED = "ERR_TTY_INIT_FAILED",
1763
+ /**
1764
+ * <p>Function was called within a <a href="process.html#event-exit"><code>process.on('exit')</code></a> handler that shouldn't be
1765
+ * called within <a href="process.html#event-exit"><code>process.on('exit')</code></a> handler.</p>
1766
+ * <p><a id="ERR_UNCAUGHT_EXCEPTION_CAPTURE_ALREADY_SET"></a></p>
1767
+ */
1768
+ ERR_UNAVAILABLE_DURING_EXIT = "ERR_UNAVAILABLE_DURING_EXIT",
1769
+ /**
1770
+ * <p><a href="process.html#processsetuncaughtexceptioncapturecallbackfn"><code>process.setUncaughtExceptionCaptureCallback()</code></a> was called twice,
1771
+ * without first resetting the callback to <code>null</code>.</p>
1772
+ * <p>This error is designed to prevent accidentally overwriting a callback registered
1773
+ * from another module.</p>
1774
+ * <p><a id="ERR_UNESCAPED_CHARACTERS"></a></p>
1775
+ */
1776
+ ERR_UNCAUGHT_EXCEPTION_CAPTURE_ALREADY_SET = "ERR_UNCAUGHT_EXCEPTION_CAPTURE_ALREADY_SET",
1777
+ /**
1778
+ * <p>A string that contained unescaped characters was received.</p>
1779
+ * <p><a id="ERR_UNHANDLED_ERROR"></a></p>
1780
+ */
1781
+ ERR_UNESCAPED_CHARACTERS = "ERR_UNESCAPED_CHARACTERS",
1782
+ /**
1783
+ * <p>An unhandled error occurred (for instance, when an <code>'error'</code> event is emitted
1784
+ * by an <a href="events.html#class-eventemitter"><code>EventEmitter</code></a> but an <code>'error'</code> handler is not registered).</p>
1785
+ * <p><a id="ERR_UNKNOWN_BUILTIN_MODULE"></a></p>
1786
+ */
1787
+ ERR_UNHANDLED_ERROR = "ERR_UNHANDLED_ERROR",
1788
+ /**
1789
+ * <p>Used to identify a specific kind of internal Node.js error that should not
1790
+ * typically be triggered by user code. Instances of this error point to an
1791
+ * internal bug within the Node.js binary itself.</p>
1792
+ * <p><a id="ERR_UNKNOWN_CREDENTIAL"></a></p>
1793
+ */
1794
+ ERR_UNKNOWN_BUILTIN_MODULE = "ERR_UNKNOWN_BUILTIN_MODULE",
1795
+ /**
1796
+ * <p>A Unix group or user identifier that does not exist was passed.</p>
1797
+ * <p><a id="ERR_UNKNOWN_ENCODING"></a></p>
1798
+ */
1799
+ ERR_UNKNOWN_CREDENTIAL = "ERR_UNKNOWN_CREDENTIAL",
1800
+ /**
1801
+ * <p>An invalid or unknown encoding option was passed to an API.</p>
1802
+ * <p><a id="ERR_UNKNOWN_FILE_EXTENSION"></a></p>
1803
+ */
1804
+ ERR_UNKNOWN_ENCODING = "ERR_UNKNOWN_ENCODING",
1805
+ /**
1806
+ * <p>An attempt was made to load a module with an unknown or unsupported file
1807
+ * extension.</p>
1808
+ * <p><a id="ERR_UNKNOWN_MODULE_FORMAT"></a></p>
1809
+ */
1810
+ ERR_UNKNOWN_FILE_EXTENSION = "ERR_UNKNOWN_FILE_EXTENSION",
1811
+ /**
1812
+ * <p>An attempt was made to load a module with an unknown or unsupported format.</p>
1813
+ * <p><a id="ERR_UNKNOWN_SIGNAL"></a></p>
1814
+ */
1815
+ ERR_UNKNOWN_MODULE_FORMAT = "ERR_UNKNOWN_MODULE_FORMAT",
1816
+ /**
1817
+ * <p>An invalid or unknown process signal was passed to an API expecting a valid
1818
+ * signal (such as <a href="child_process.html#subprocesskillsignal"><code>subprocess.kill()</code></a>).</p>
1819
+ * <p><a id="ERR_UNSUPPORTED_DIR_IMPORT"></a></p>
1820
+ */
1821
+ ERR_UNKNOWN_SIGNAL = "ERR_UNKNOWN_SIGNAL",
1822
+ /**
1823
+ * <p><code>import</code> a directory URL is unsupported. Instead,
1824
+ * <a href="packages.html#self-referencing-a-package-using-its-name">self-reference a package using its name</a> and <a href="packages.html#subpath-exports">define a custom subpath</a> in
1825
+ * the <a href="packages.html#exports"><code>"exports"</code></a> field of the <a href="packages.html#nodejs-packagejson-field-definitions"><code>package.json</code></a> file.</p>
1826
+ * <pre><code class="language-mjs">import './'; // unsupported
1827
+ * import './index.js'; // supported
1828
+ * import 'package-name'; // supported
1829
+ * </code></pre>
1830
+ * <p><a id="ERR_UNSUPPORTED_ESM_URL_SCHEME"></a></p>
1831
+ */
1832
+ ERR_UNSUPPORTED_DIR_IMPORT = "ERR_UNSUPPORTED_DIR_IMPORT",
1833
+ /**
1834
+ * <p><code>import</code> with URL schemes other than <code>file</code> and <code>data</code> is unsupported.</p>
1835
+ * <p><a id="ERR_UNSUPPORTED_NODE_MODULES_TYPE_STRIPPING"></a></p>
1836
+ */
1837
+ ERR_UNSUPPORTED_ESM_URL_SCHEME = "ERR_UNSUPPORTED_ESM_URL_SCHEME",
1838
+ /**
1839
+ * <p>Type stripping is not supported for files descendent of a <code>node_modules</code> directory.</p>
1840
+ * <p><a id="ERR_UNSUPPORTED_RESOLVE_REQUEST"></a></p>
1841
+ */
1842
+ ERR_UNSUPPORTED_NODE_MODULES_TYPE_STRIPPING = "ERR_UNSUPPORTED_NODE_MODULES_TYPE_STRIPPING",
1843
+ /**
1844
+ * <p>An attempt was made to resolve an invalid module referrer. This can happen when
1845
+ * importing or calling <code>import.meta.resolve()</code> with either:</p>
1846
+ * <ul>
1847
+ * <li>a bare specifier that is not a builtin module from a module whose URL scheme
1848
+ * is not <code>file</code>.</li>
1849
+ * <li>a <a href="https://url.spec.whatwg.org/#relative-url-string">relative URL</a> from a module whose URL scheme is not a <a href="https://url.spec.whatwg.org/#special-scheme">special scheme</a>.</li>
1850
+ * </ul>
1851
+ * <pre><code class="language-mjs">try {
1852
+ * // Trying to import the package 'bare-specifier' from a `data:` URL module:
1853
+ * await import('data:text/javascript,import "bare-specifier"');
1854
+ * } catch (e) {
1855
+ * console.log(e.code); // ERR_UNSUPPORTED_RESOLVE_REQUEST
1856
+ * }
1857
+ * </code></pre>
1858
+ * <p><a id="ERR_UNSUPPORTED_TYPESCRIPT_SYNTAX"></a></p>
1859
+ */
1860
+ ERR_UNSUPPORTED_RESOLVE_REQUEST = "ERR_UNSUPPORTED_RESOLVE_REQUEST",
1861
+ /**
1862
+ * <p>The provided TypeScript syntax is unsupported.
1863
+ * This could happen when using TypeScript syntax that requires
1864
+ * transformation with <a href="typescript.html#type-stripping">type-stripping</a>.</p>
1865
+ * <p><a id="ERR_USE_AFTER_CLOSE"></a></p>
1866
+ */
1867
+ ERR_UNSUPPORTED_TYPESCRIPT_SYNTAX = "ERR_UNSUPPORTED_TYPESCRIPT_SYNTAX",
1868
+ /**
1869
+ * <p>An attempt was made to use something that was already closed.</p>
1870
+ * <p><a id="ERR_VALID_PERFORMANCE_ENTRY_TYPE"></a></p>
1871
+ */
1872
+ ERR_USE_AFTER_CLOSE = "ERR_USE_AFTER_CLOSE",
1873
+ /**
1874
+ * <p>While using the Performance Timing API (<code>perf_hooks</code>), no valid performance
1875
+ * entry types are found.</p>
1876
+ * <p><a id="ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING"></a></p>
1877
+ */
1878
+ ERR_VALID_PERFORMANCE_ENTRY_TYPE = "ERR_VALID_PERFORMANCE_ENTRY_TYPE",
1879
+ /**
1880
+ * <p>A dynamic import callback was not specified.</p>
1881
+ * <p><a id="ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING_FLAG"></a></p>
1882
+ */
1883
+ ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING = "ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING",
1884
+ /**
1885
+ * <p>A dynamic import callback was invoked without <code>--experimental-vm-modules</code>.</p>
1886
+ * <p><a id="ERR_VM_MODULE_ALREADY_LINKED"></a></p>
1887
+ */
1888
+ ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING_FLAG = "ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING_FLAG",
1889
+ /**
1890
+ * <p>The module attempted to be linked is not eligible for linking, because of one of
1891
+ * the following reasons:</p>
1892
+ * <ul>
1893
+ * <li>It has already been linked (<code>linkingStatus</code> is <code>'linked'</code>)</li>
1894
+ * <li>It is being linked (<code>linkingStatus</code> is <code>'linking'</code>)</li>
1895
+ * <li>Linking has failed for this module (<code>linkingStatus</code> is <code>'errored'</code>)</li>
1896
+ * </ul>
1897
+ * <p><a id="ERR_VM_MODULE_CACHED_DATA_REJECTED"></a></p>
1898
+ */
1899
+ ERR_VM_MODULE_ALREADY_LINKED = "ERR_VM_MODULE_ALREADY_LINKED",
1900
+ /**
1901
+ * <p>The <code>cachedData</code> option passed to a module constructor is invalid.</p>
1902
+ * <p><a id="ERR_VM_MODULE_CANNOT_CREATE_CACHED_DATA"></a></p>
1903
+ */
1904
+ ERR_VM_MODULE_CACHED_DATA_REJECTED = "ERR_VM_MODULE_CACHED_DATA_REJECTED",
1905
+ /**
1906
+ * <p>Cached data cannot be created for modules which have already been evaluated.</p>
1907
+ * <p><a id="ERR_VM_MODULE_DIFFERENT_CONTEXT"></a></p>
1908
+ */
1909
+ ERR_VM_MODULE_CANNOT_CREATE_CACHED_DATA = "ERR_VM_MODULE_CANNOT_CREATE_CACHED_DATA",
1910
+ /**
1911
+ * <p>The module being returned from the linker function is from a different context
1912
+ * than the parent module. Linked modules must share the same context.</p>
1913
+ * <p><a id="ERR_VM_MODULE_LINK_FAILURE"></a></p>
1914
+ */
1915
+ ERR_VM_MODULE_DIFFERENT_CONTEXT = "ERR_VM_MODULE_DIFFERENT_CONTEXT",
1916
+ /**
1917
+ * <p>The module was unable to be linked due to a failure.</p>
1918
+ * <p><a id="ERR_VM_MODULE_NOT_MODULE"></a></p>
1919
+ */
1920
+ ERR_VM_MODULE_LINK_FAILURE = "ERR_VM_MODULE_LINK_FAILURE",
1921
+ /**
1922
+ * <p>The fulfilled value of a linking promise is not a <code>vm.Module</code> object.</p>
1923
+ * <p><a id="ERR_VM_MODULE_STATUS"></a></p>
1924
+ */
1925
+ ERR_VM_MODULE_NOT_MODULE = "ERR_VM_MODULE_NOT_MODULE",
1926
+ /**
1927
+ * <p>The current module's status does not allow for this operation. The specific
1928
+ * meaning of the error depends on the specific function.</p>
1929
+ * <p><a id="ERR_WASI_ALREADY_STARTED"></a></p>
1930
+ */
1931
+ ERR_VM_MODULE_STATUS = "ERR_VM_MODULE_STATUS",
1932
+ /**
1933
+ * <p>The WASI instance has already started.</p>
1934
+ * <p><a id="ERR_WASI_NOT_STARTED"></a></p>
1935
+ */
1936
+ ERR_WASI_ALREADY_STARTED = "ERR_WASI_ALREADY_STARTED",
1937
+ /**
1938
+ * <p>The WASI instance has not been started.</p>
1939
+ * <p><a id="ERR_WEBASSEMBLY_RESPONSE"></a></p>
1940
+ */
1941
+ ERR_WASI_NOT_STARTED = "ERR_WASI_NOT_STARTED",
1942
+ /**
1943
+ * <p>The <code>Response</code> that has been passed to <code>WebAssembly.compileStreaming</code> or to
1944
+ * <code>WebAssembly.instantiateStreaming</code> is not a valid WebAssembly response.</p>
1945
+ * <p><a id="ERR_WORKER_INIT_FAILED"></a></p>
1946
+ */
1947
+ ERR_WEBASSEMBLY_RESPONSE = "ERR_WEBASSEMBLY_RESPONSE",
1948
+ /**
1949
+ * <p>The <code>Worker</code> initialization failed.</p>
1950
+ * <p><a id="ERR_WORKER_INVALID_EXEC_ARGV"></a></p>
1951
+ */
1952
+ ERR_WORKER_INIT_FAILED = "ERR_WORKER_INIT_FAILED",
1953
+ /**
1954
+ * <p>The <code>execArgv</code> option passed to the <code>Worker</code> constructor contains
1955
+ * invalid flags.</p>
1956
+ * <p><a id="ERR_WORKER_MESSAGING_ERRORED"></a></p>
1957
+ */
1958
+ ERR_WORKER_INVALID_EXEC_ARGV = "ERR_WORKER_INVALID_EXEC_ARGV",
1959
+ /**
1960
+ * <p>The destination thread threw an error while processing a message sent via <a href="worker_threads.html#workerpostmessagetothreadthreadid-value-transferlist-timeout"><code>postMessageToThread()</code></a>.</p>
1961
+ * <p><a id="ERR_WORKER_MESSAGING_FAILED"></a></p>
1962
+ */
1963
+ ERR_WORKER_MESSAGING_ERRORED = "ERR_WORKER_MESSAGING_ERRORED",
1964
+ /**
1965
+ * <p>The thread requested in <a href="worker_threads.html#workerpostmessagetothreadthreadid-value-transferlist-timeout"><code>postMessageToThread()</code></a> is invalid or has no <code>workerMessage</code> listener.</p>
1966
+ * <p><a id="ERR_WORKER_MESSAGING_SAME_THREAD"></a></p>
1967
+ */
1968
+ ERR_WORKER_MESSAGING_FAILED = "ERR_WORKER_MESSAGING_FAILED",
1969
+ /**
1970
+ * <p>The thread id requested in <a href="worker_threads.html#workerpostmessagetothreadthreadid-value-transferlist-timeout"><code>postMessageToThread()</code></a> is the current thread id.</p>
1971
+ * <p><a id="ERR_WORKER_MESSAGING_TIMEOUT"></a></p>
1972
+ */
1973
+ ERR_WORKER_MESSAGING_SAME_THREAD = "ERR_WORKER_MESSAGING_SAME_THREAD",
1974
+ /**
1975
+ * <p>Sending a message via <a href="worker_threads.html#workerpostmessagetothreadthreadid-value-transferlist-timeout"><code>postMessageToThread()</code></a> timed out.</p>
1976
+ * <p><a id="ERR_WORKER_NOT_RUNNING"></a></p>
1977
+ */
1978
+ ERR_WORKER_MESSAGING_TIMEOUT = "ERR_WORKER_MESSAGING_TIMEOUT",
1979
+ /**
1980
+ * <p>An operation failed because the <code>Worker</code> instance is not currently running.</p>
1981
+ * <p><a id="ERR_WORKER_OUT_OF_MEMORY"></a></p>
1982
+ */
1983
+ ERR_WORKER_NOT_RUNNING = "ERR_WORKER_NOT_RUNNING",
1984
+ /**
1985
+ * <p>The <code>Worker</code> instance terminated because it reached its memory limit.</p>
1986
+ * <p><a id="ERR_WORKER_PATH"></a></p>
1987
+ */
1988
+ ERR_WORKER_OUT_OF_MEMORY = "ERR_WORKER_OUT_OF_MEMORY",
1989
+ /**
1990
+ * <p>The path for the main script of a worker is neither an absolute path
1991
+ * nor a relative path starting with <code>./</code> or <code>../</code>.</p>
1992
+ * <p><a id="ERR_WORKER_UNSERIALIZABLE_ERROR"></a></p>
1993
+ */
1994
+ ERR_WORKER_PATH = "ERR_WORKER_PATH",
1995
+ /**
1996
+ * <p>All attempts at serializing an uncaught exception from a worker thread failed.</p>
1997
+ * <p><a id="ERR_WORKER_UNSUPPORTED_OPERATION"></a></p>
1998
+ */
1999
+ ERR_WORKER_UNSERIALIZABLE_ERROR = "ERR_WORKER_UNSERIALIZABLE_ERROR",
2000
+ /**
2001
+ * <p>The requested functionality is not supported in worker threads.</p>
2002
+ * <p><a id="ERR_ZLIB_INITIALIZATION_FAILED"></a></p>
2003
+ */
2004
+ ERR_WORKER_UNSUPPORTED_OPERATION = "ERR_WORKER_UNSUPPORTED_OPERATION",
2005
+ /**
2006
+ * <p>Creation of a <a href="zlib.html"><code>zlib</code></a> object failed due to incorrect configuration.</p>
2007
+ * <p><a id="ERR_ZSTD_INVALID_PARAM"></a></p>
2008
+ */
2009
+ ERR_ZLIB_INITIALIZATION_FAILED = "ERR_ZLIB_INITIALIZATION_FAILED",
2010
+ /**
2011
+ * <p>An invalid parameter key was passed during construction of a Zstd stream.</p>
2012
+ * <p><a id="HPE_CHUNK_EXTENSIONS_OVERFLOW"></a></p>
2013
+ */
2014
+ ERR_ZSTD_INVALID_PARAM = "ERR_ZSTD_INVALID_PARAM",
2015
+ /**
2016
+ * <p>Too much data was received for a chunk extensions. In order to protect against
2017
+ * malicious or malconfigured clients, if more than 16 KiB of data is received
2018
+ * then an <code>Error</code> with this code will be emitted.</p>
2019
+ * <p><a id="HPE_HEADER_OVERFLOW"></a></p>
2020
+ */
2021
+ HPE_CHUNK_EXTENSIONS_OVERFLOW = "HPE_CHUNK_EXTENSIONS_OVERFLOW",
2022
+ /**
2023
+ * <p>Too much HTTP header data was received. In order to protect against malicious or
2024
+ * malconfigured clients, if more than <code>maxHeaderSize</code> of HTTP header data is received then
2025
+ * HTTP parsing will abort without a request or response object being created, and
2026
+ * an <code>Error</code> with this code will be emitted.</p>
2027
+ * <p><a id="HPE_UNEXPECTED_CONTENT_LENGTH"></a></p>
2028
+ */
2029
+ HPE_HEADER_OVERFLOW = "HPE_HEADER_OVERFLOW",
2030
+ /**
2031
+ * <p>Server is sending both a <code>Content-Length</code> header and <code>Transfer-Encoding: chunked</code>.</p>
2032
+ * <p><code>Transfer-Encoding: chunked</code> allows the server to maintain an HTTP persistent
2033
+ * connection for dynamically generated content.
2034
+ * In this case, the <code>Content-Length</code> HTTP header cannot be used.</p>
2035
+ * <p>Use <code>Content-Length</code> or <code>Transfer-Encoding: chunked</code>.</p>
2036
+ * <p><a id="MODULE_NOT_FOUND"></a></p>
2037
+ */
2038
+ HPE_UNEXPECTED_CONTENT_LENGTH = "HPE_UNEXPECTED_CONTENT_LENGTH",
2039
+ /**
2040
+ * <p>A module file could not be resolved by the CommonJS modules loader while
2041
+ * attempting a <a href="modules.html#requireid"><code>require()</code></a> operation or when loading the program entry point.</p>
2042
+ */
2043
+ MODULE_NOT_FOUND = "MODULE_NOT_FOUND",
2044
+ /**
2045
+ * <p>The value passed to <code>postMessage()</code> contained an object that is not supported
2046
+ * for transferring.</p>
2047
+ * <p><a id="ERR_CPU_USAGE"></a></p>
2048
+ * @deprecated
2049
+ */
2050
+ ERR_CANNOT_TRANSFER_OBJECT = "ERR_CANNOT_TRANSFER_OBJECT",
2051
+ /**
2052
+ * <p>The native call from <code>process.cpuUsage</code> could not be processed.</p>
2053
+ * <p><a id="ERR_CRYPTO_HASH_DIGEST_NO_UTF16"></a></p>
2054
+ * @deprecated
2055
+ */
2056
+ ERR_CPU_USAGE = "ERR_CPU_USAGE",
2057
+ /**
2058
+ * <p>The UTF-16 encoding was used with <a href="crypto.html#hashdigestencoding"><code>hash.digest()</code></a>. While the
2059
+ * <code>hash.digest()</code> method does allow an <code>encoding</code> argument to be passed in,
2060
+ * causing the method to return a string rather than a <code>Buffer</code>, the UTF-16
2061
+ * encoding (e.g. <code>ucs</code> or <code>utf16le</code>) is not supported.</p>
2062
+ * <p><a id="ERR_CRYPTO_SCRYPT_INVALID_PARAMETER"></a></p>
2063
+ * @deprecated
2064
+ */
2065
+ ERR_CRYPTO_HASH_DIGEST_NO_UTF16 = "ERR_CRYPTO_HASH_DIGEST_NO_UTF16",
2066
+ /**
2067
+ * <p>An incompatible combination of options was passed to <a href="crypto.html#cryptoscryptpassword-salt-keylen-options-callback"><code>crypto.scrypt()</code></a> or
2068
+ * <a href="crypto.html#cryptoscryptsyncpassword-salt-keylen-options"><code>crypto.scryptSync()</code></a>. New versions of Node.js use the error code
2069
+ * <a href="#err_incompatible_option_pair"><code>ERR_INCOMPATIBLE_OPTION_PAIR</code></a> instead, which is consistent with other APIs.</p>
2070
+ * <p><a id="ERR_FS_INVALID_SYMLINK_TYPE"></a></p>
2071
+ * @deprecated
2072
+ */
2073
+ ERR_CRYPTO_SCRYPT_INVALID_PARAMETER = "ERR_CRYPTO_SCRYPT_INVALID_PARAMETER",
2074
+ /**
2075
+ * <p>An invalid symlink type was passed to the <a href="fs.html#fssymlinktarget-path-type-callback"><code>fs.symlink()</code></a> or
2076
+ * <a href="fs.html#fssymlinksynctarget-path-type"><code>fs.symlinkSync()</code></a> methods.</p>
2077
+ * <p><a id="ERR_HTTP2_FRAME_ERROR"></a></p>
2078
+ * @deprecated
2079
+ */
2080
+ ERR_FS_INVALID_SYMLINK_TYPE = "ERR_FS_INVALID_SYMLINK_TYPE",
2081
+ /**
2082
+ * <p>Used when a failure occurs sending an individual frame on the HTTP/2
2083
+ * session.</p>
2084
+ * <p><a id="ERR_HTTP2_HEADERS_OBJECT"></a></p>
2085
+ * @deprecated
2086
+ */
2087
+ ERR_HTTP2_FRAME_ERROR = "ERR_HTTP2_FRAME_ERROR",
2088
+ /**
2089
+ * <p>Used when an HTTP/2 Headers Object is expected.</p>
2090
+ * <p><a id="ERR_HTTP2_HEADER_REQUIRED"></a></p>
2091
+ * @deprecated
2092
+ */
2093
+ ERR_HTTP2_HEADERS_OBJECT = "ERR_HTTP2_HEADERS_OBJECT",
2094
+ /**
2095
+ * <p>Used when a required header is missing in an HTTP/2 message.</p>
2096
+ * <p><a id="ERR_HTTP2_INFO_HEADERS_AFTER_RESPOND"></a></p>
2097
+ * @deprecated
2098
+ */
2099
+ ERR_HTTP2_HEADER_REQUIRED = "ERR_HTTP2_HEADER_REQUIRED",
2100
+ /**
2101
+ * <p>HTTP/2 informational headers must only be sent <em>prior</em> to calling the
2102
+ * <code>Http2Stream.prototype.respond()</code> method.</p>
2103
+ * <p><a id="ERR_HTTP2_STREAM_CLOSED"></a></p>
2104
+ * @deprecated
2105
+ */
2106
+ ERR_HTTP2_INFO_HEADERS_AFTER_RESPOND = "ERR_HTTP2_INFO_HEADERS_AFTER_RESPOND",
2107
+ /**
2108
+ * <p>Used when an action has been performed on an HTTP/2 Stream that has already
2109
+ * been closed.</p>
2110
+ * <p><a id="ERR_HTTP_INVALID_CHAR"></a></p>
2111
+ * @deprecated
2112
+ */
2113
+ ERR_HTTP2_STREAM_CLOSED = "ERR_HTTP2_STREAM_CLOSED",
2114
+ /**
2115
+ * <p>Used when an invalid character is found in an HTTP response status message
2116
+ * (reason phrase).</p>
2117
+ * <p><a id="ERR_IMPORT_ASSERTION_TYPE_FAILED"></a></p>
2118
+ * @deprecated
2119
+ */
2120
+ ERR_HTTP_INVALID_CHAR = "ERR_HTTP_INVALID_CHAR",
2121
+ /**
2122
+ * <p>An import assertion has failed, preventing the specified module to be imported.</p>
2123
+ * <p><a id="ERR_IMPORT_ASSERTION_TYPE_MISSING"></a></p>
2124
+ * @deprecated
2125
+ */
2126
+ ERR_IMPORT_ASSERTION_TYPE_FAILED = "ERR_IMPORT_ASSERTION_TYPE_FAILED",
2127
+ /**
2128
+ * <p>An import assertion is missing, preventing the specified module to be imported.</p>
2129
+ * <p><a id="ERR_IMPORT_ASSERTION_TYPE_UNSUPPORTED"></a></p>
2130
+ * @deprecated
2131
+ */
2132
+ ERR_IMPORT_ASSERTION_TYPE_MISSING = "ERR_IMPORT_ASSERTION_TYPE_MISSING",
2133
+ /**
2134
+ * <p>An import attribute is not supported by this version of Node.js.</p>
2135
+ * <p><a id="ERR_INDEX_OUT_OF_RANGE"></a></p>
2136
+ * @deprecated
2137
+ */
2138
+ ERR_IMPORT_ASSERTION_TYPE_UNSUPPORTED = "ERR_IMPORT_ASSERTION_TYPE_UNSUPPORTED",
2139
+ /**
2140
+ * <p>A given index was out of the accepted range (e.g. negative offsets).</p>
2141
+ * <p><a id="ERR_INVALID_OPT_VALUE"></a></p>
2142
+ * @deprecated
2143
+ */
2144
+ ERR_INDEX_OUT_OF_RANGE = "ERR_INDEX_OUT_OF_RANGE",
2145
+ /**
2146
+ * <p>An invalid or unexpected value was passed in an options object.</p>
2147
+ * <p><a id="ERR_INVALID_OPT_VALUE_ENCODING"></a></p>
2148
+ * @deprecated
2149
+ */
2150
+ ERR_INVALID_OPT_VALUE = "ERR_INVALID_OPT_VALUE",
2151
+ /**
2152
+ * <p>An invalid or unknown file encoding was passed.</p>
2153
+ * <p><a id="ERR_INVALID_PERFORMANCE_MARK"></a></p>
2154
+ * @deprecated
2155
+ */
2156
+ ERR_INVALID_OPT_VALUE_ENCODING = "ERR_INVALID_OPT_VALUE_ENCODING",
2157
+ /**
2158
+ * <p>While using the Performance Timing API (<code>perf_hooks</code>), a performance mark is
2159
+ * invalid.</p>
2160
+ * <p><a id="ERR_INVALID_TRANSFER_OBJECT"></a></p>
2161
+ * @deprecated
2162
+ */
2163
+ ERR_INVALID_PERFORMANCE_MARK = "ERR_INVALID_PERFORMANCE_MARK",
2164
+ /**
2165
+ * <p>An invalid transfer object was passed to <code>postMessage()</code>.</p>
2166
+ * <p><a id="ERR_MANIFEST_ASSERT_INTEGRITY"></a></p>
2167
+ * @deprecated
2168
+ */
2169
+ ERR_INVALID_TRANSFER_OBJECT = "ERR_INVALID_TRANSFER_OBJECT",
2170
+ /**
2171
+ * <p>An attempt was made to load a resource, but the resource did not match the
2172
+ * integrity defined by the policy manifest. See the documentation for policy
2173
+ * manifests for more information.</p>
2174
+ * <p><a id="ERR_MANIFEST_DEPENDENCY_MISSING"></a></p>
2175
+ * @deprecated
2176
+ */
2177
+ ERR_MANIFEST_ASSERT_INTEGRITY = "ERR_MANIFEST_ASSERT_INTEGRITY",
2178
+ /**
2179
+ * <p>An attempt was made to load a resource, but the resource was not listed as a
2180
+ * dependency from the location that attempted to load it. See the documentation
2181
+ * for policy manifests for more information.</p>
2182
+ * <p><a id="ERR_MANIFEST_INTEGRITY_MISMATCH"></a></p>
2183
+ * @deprecated
2184
+ */
2185
+ ERR_MANIFEST_DEPENDENCY_MISSING = "ERR_MANIFEST_DEPENDENCY_MISSING",
2186
+ /**
2187
+ * <p>An attempt was made to load a policy manifest, but the manifest had multiple
2188
+ * entries for a resource which did not match each other. Update the manifest
2189
+ * entries to match in order to resolve this error. See the documentation for
2190
+ * policy manifests for more information.</p>
2191
+ * <p><a id="ERR_MANIFEST_INVALID_RESOURCE_FIELD"></a></p>
2192
+ * @deprecated
2193
+ */
2194
+ ERR_MANIFEST_INTEGRITY_MISMATCH = "ERR_MANIFEST_INTEGRITY_MISMATCH",
2195
+ /**
2196
+ * <p>A policy manifest resource had an invalid value for one of its fields. Update
2197
+ * the manifest entry to match in order to resolve this error. See the
2198
+ * documentation for policy manifests for more information.</p>
2199
+ * <p><a id="ERR_MANIFEST_INVALID_SPECIFIER"></a></p>
2200
+ * @deprecated
2201
+ */
2202
+ ERR_MANIFEST_INVALID_RESOURCE_FIELD = "ERR_MANIFEST_INVALID_RESOURCE_FIELD",
2203
+ /**
2204
+ * <p>A policy manifest resource had an invalid value for one of its dependency
2205
+ * mappings. Update the manifest entry to match to resolve this error. See the
2206
+ * documentation for policy manifests for more information.</p>
2207
+ * <p><a id="ERR_MANIFEST_PARSE_POLICY"></a></p>
2208
+ * @deprecated
2209
+ */
2210
+ ERR_MANIFEST_INVALID_SPECIFIER = "ERR_MANIFEST_INVALID_SPECIFIER",
2211
+ /**
2212
+ * <p>An attempt was made to load a policy manifest, but the manifest was unable to
2213
+ * be parsed. See the documentation for policy manifests for more information.</p>
2214
+ * <p><a id="ERR_MANIFEST_TDZ"></a></p>
2215
+ * @deprecated
2216
+ */
2217
+ ERR_MANIFEST_PARSE_POLICY = "ERR_MANIFEST_PARSE_POLICY",
2218
+ /**
2219
+ * <p>An attempt was made to read from a policy manifest, but the manifest
2220
+ * initialization has not yet taken place. This is likely a bug in Node.js.</p>
2221
+ * <p><a id="ERR_MANIFEST_UNKNOWN_ONERROR"></a></p>
2222
+ * @deprecated
2223
+ */
2224
+ ERR_MANIFEST_TDZ = "ERR_MANIFEST_TDZ",
2225
+ /**
2226
+ * <p>A policy manifest was loaded, but had an unknown value for its "onerror"
2227
+ * behavior. See the documentation for policy manifests for more information.</p>
2228
+ * <p><a id="ERR_MISSING_MESSAGE_PORT_IN_TRANSFER_LIST"></a></p>
2229
+ * @deprecated
2230
+ */
2231
+ ERR_MANIFEST_UNKNOWN_ONERROR = "ERR_MANIFEST_UNKNOWN_ONERROR",
2232
+ /**
2233
+ * <p>This error code was replaced by <a href="#err_missing_transferable_in_transfer_list"><code>ERR_MISSING_TRANSFERABLE_IN_TRANSFER_LIST</code></a>
2234
+ * in Node.js v15.0.0, because it is no longer accurate as other types of
2235
+ * transferable objects also exist now.</p>
2236
+ * <p><a id="ERR_MISSING_TRANSFERABLE_IN_TRANSFER_LIST"></a></p>
2237
+ * @deprecated
2238
+ */
2239
+ ERR_MISSING_MESSAGE_PORT_IN_TRANSFER_LIST = "ERR_MISSING_MESSAGE_PORT_IN_TRANSFER_LIST",
2240
+ /**
2241
+ * <p>An object that needs to be explicitly listed in the <code>transferList</code> argument
2242
+ * is in the object passed to a <a href="worker_threads.html#portpostmessagevalue-transferlist"><code>postMessage()</code></a> call, but is not provided
2243
+ * in the <code>transferList</code> for that call. Usually, this is a <code>MessagePort</code>.</p>
2244
+ * <p>In Node.js versions prior to v15.0.0, the error code being used here was
2245
+ * <a href="#err_missing_message_port_in_transfer_list"><code>ERR_MISSING_MESSAGE_PORT_IN_TRANSFER_LIST</code></a>. However, the set of
2246
+ * transferable object types has been expanded to cover more types than
2247
+ * <code>MessagePort</code>.</p>
2248
+ * <p><a id="ERR_NAPI_CONS_PROTOTYPE_OBJECT"></a></p>
2249
+ * @deprecated
2250
+ */
2251
+ ERR_MISSING_TRANSFERABLE_IN_TRANSFER_LIST = "ERR_MISSING_TRANSFERABLE_IN_TRANSFER_LIST",
2252
+ /**
2253
+ * <p>Used by the <code>Node-API</code> when <code>Constructor.prototype</code> is not an object.</p>
2254
+ * <p><a id="ERR_NAPI_TSFN_START_IDLE_LOOP"></a></p>
2255
+ * @deprecated
2256
+ */
2257
+ ERR_NAPI_CONS_PROTOTYPE_OBJECT = "ERR_NAPI_CONS_PROTOTYPE_OBJECT",
2258
+ /**
2259
+ * <p>On the main thread, values are removed from the queue associated with the
2260
+ * thread-safe function in an idle loop. This error indicates that an error
2261
+ * has occurred when attempting to start the loop.</p>
2262
+ * <p><a id="ERR_NAPI_TSFN_STOP_IDLE_LOOP"></a></p>
2263
+ * @deprecated
2264
+ */
2265
+ ERR_NAPI_TSFN_START_IDLE_LOOP = "ERR_NAPI_TSFN_START_IDLE_LOOP",
2266
+ /**
2267
+ * <p>Once no more items are left in the queue, the idle loop must be suspended. This
2268
+ * error indicates that the idle loop has failed to stop.</p>
2269
+ * <p><a id="ERR_NO_LONGER_SUPPORTED"></a></p>
2270
+ * @deprecated
2271
+ */
2272
+ ERR_NAPI_TSFN_STOP_IDLE_LOOP = "ERR_NAPI_TSFN_STOP_IDLE_LOOP",
2273
+ /**
2274
+ * <p>A Node.js API was called in an unsupported manner, such as
2275
+ * <code>Buffer.write(string, encoding, offset[, length])</code>.</p>
2276
+ * <p><a id="ERR_OUTOFMEMORY"></a></p>
2277
+ * @deprecated
2278
+ */
2279
+ ERR_NO_LONGER_SUPPORTED = "ERR_NO_LONGER_SUPPORTED",
2280
+ /**
2281
+ * <p>Used generically to identify that an operation caused an out of memory
2282
+ * condition.</p>
2283
+ * <p><a id="ERR_PARSE_HISTORY_DATA"></a></p>
2284
+ * @deprecated
2285
+ */
2286
+ ERR_OUTOFMEMORY = "ERR_OUTOFMEMORY",
2287
+ /**
2288
+ * <p>The <code>node:repl</code> module was unable to parse data from the REPL history file.</p>
2289
+ * <p><a id="ERR_SOCKET_CANNOT_SEND"></a></p>
2290
+ * @deprecated
2291
+ */
2292
+ ERR_PARSE_HISTORY_DATA = "ERR_PARSE_HISTORY_DATA",
2293
+ /**
2294
+ * <p>Data could not be sent on a socket.</p>
2295
+ * <p><a id="ERR_STDERR_CLOSE"></a></p>
2296
+ * @deprecated
2297
+ */
2298
+ ERR_SOCKET_CANNOT_SEND = "ERR_SOCKET_CANNOT_SEND",
2299
+ /**
2300
+ * <p>An attempt was made to close the <code>process.stderr</code> stream. By design, Node.js
2301
+ * does not allow <code>stdout</code> or <code>stderr</code> streams to be closed by user code.</p>
2302
+ * <p><a id="ERR_STDOUT_CLOSE"></a></p>
2303
+ * @deprecated
2304
+ */
2305
+ ERR_STDERR_CLOSE = "ERR_STDERR_CLOSE",
2306
+ /**
2307
+ * <p>An attempt was made to close the <code>process.stdout</code> stream. By design, Node.js
2308
+ * does not allow <code>stdout</code> or <code>stderr</code> streams to be closed by user code.</p>
2309
+ * <p><a id="ERR_STREAM_READ_NOT_IMPLEMENTED"></a></p>
2310
+ * @deprecated
2311
+ */
2312
+ ERR_STDOUT_CLOSE = "ERR_STDOUT_CLOSE",
2313
+ /**
2314
+ * <p>Used when an attempt is made to use a readable stream that has not implemented
2315
+ * <a href="stream.html#readable_readsize"><code>readable._read()</code></a>.</p>
2316
+ * <p><a id="ERR_TAP_LEXER_ERROR"></a></p>
2317
+ * @deprecated
2318
+ */
2319
+ ERR_STREAM_READ_NOT_IMPLEMENTED = "ERR_STREAM_READ_NOT_IMPLEMENTED",
2320
+ /**
2321
+ * <p>An error representing a failing lexer state.</p>
2322
+ * <p><a id="ERR_TAP_PARSER_ERROR"></a></p>
2323
+ * @deprecated
2324
+ */
2325
+ ERR_TAP_LEXER_ERROR = "ERR_TAP_LEXER_ERROR",
2326
+ /**
2327
+ * <p>An error representing a failing parser state. Additional information about
2328
+ * the token causing the error is available via the <code>cause</code> property.</p>
2329
+ * <p><a id="ERR_TAP_VALIDATION_ERROR"></a></p>
2330
+ * @deprecated
2331
+ */
2332
+ ERR_TAP_PARSER_ERROR = "ERR_TAP_PARSER_ERROR",
2333
+ /**
2334
+ * <p>This error represents a failed TAP validation.</p>
2335
+ * <p><a id="ERR_TLS_RENEGOTIATION_FAILED"></a></p>
2336
+ * @deprecated
2337
+ */
2338
+ ERR_TAP_VALIDATION_ERROR = "ERR_TAP_VALIDATION_ERROR",
2339
+ /**
2340
+ * <p>Used when a TLS renegotiation request has failed in a non-specific way.</p>
2341
+ * <p><a id="ERR_TRANSFERRING_EXTERNALIZED_SHAREDARRAYBUFFER"></a></p>
2342
+ * @deprecated
2343
+ */
2344
+ ERR_TLS_RENEGOTIATION_FAILED = "ERR_TLS_RENEGOTIATION_FAILED",
2345
+ /**
2346
+ * <p>A <code>SharedArrayBuffer</code> whose memory is not managed by the JavaScript engine
2347
+ * or by Node.js was encountered during serialization. Such a <code>SharedArrayBuffer</code>
2348
+ * cannot be serialized.</p>
2349
+ * <p>This can only happen when native addons create <code>SharedArrayBuffer</code>s in
2350
+ * "externalized" mode, or put existing <code>SharedArrayBuffer</code> into externalized mode.</p>
2351
+ * <p><a id="ERR_UNKNOWN_STDIN_TYPE"></a></p>
2352
+ * @deprecated
2353
+ */
2354
+ ERR_TRANSFERRING_EXTERNALIZED_SHAREDARRAYBUFFER = "ERR_TRANSFERRING_EXTERNALIZED_SHAREDARRAYBUFFER",
2355
+ /**
2356
+ * <p>An attempt was made to launch a Node.js process with an unknown <code>stdin</code> file
2357
+ * type. This error is usually an indication of a bug within Node.js itself,
2358
+ * although it is possible for user code to trigger it.</p>
2359
+ * <p><a id="ERR_UNKNOWN_STREAM_TYPE"></a></p>
2360
+ * @deprecated
2361
+ */
2362
+ ERR_UNKNOWN_STDIN_TYPE = "ERR_UNKNOWN_STDIN_TYPE",
2363
+ /**
2364
+ * <p>An attempt was made to launch a Node.js process with an unknown <code>stdout</code> or
2365
+ * <code>stderr</code> file type. This error is usually an indication of a bug within Node.js
2366
+ * itself, although it is possible for user code to trigger it.</p>
2367
+ * <p><a id="ERR_V8BREAKITERATOR"></a></p>
2368
+ * @deprecated
2369
+ */
2370
+ ERR_UNKNOWN_STREAM_TYPE = "ERR_UNKNOWN_STREAM_TYPE",
2371
+ /**
2372
+ * <p>The V8 <code>BreakIterator</code> API was used but the full ICU data set is not installed.</p>
2373
+ * <p><a id="ERR_VALUE_OUT_OF_RANGE"></a></p>
2374
+ * @deprecated
2375
+ */
2376
+ ERR_V8BREAKITERATOR = "ERR_V8BREAKITERATOR",
2377
+ /**
2378
+ * <p>Used when a given value is out of the accepted range.</p>
2379
+ * <p><a id="ERR_VM_MODULE_LINKING_ERRORED"></a></p>
2380
+ * @deprecated
2381
+ */
2382
+ ERR_VALUE_OUT_OF_RANGE = "ERR_VALUE_OUT_OF_RANGE",
2383
+ /**
2384
+ * <p>The linker function returned a module for which linking has failed.</p>
2385
+ * <p><a id="ERR_VM_MODULE_NOT_LINKED"></a></p>
2386
+ * @deprecated
2387
+ */
2388
+ ERR_VM_MODULE_LINKING_ERRORED = "ERR_VM_MODULE_LINKING_ERRORED",
2389
+ /**
2390
+ * <p>The module must be successfully linked before instantiation.</p>
2391
+ * <p><a id="ERR_WORKER_UNSUPPORTED_EXTENSION"></a></p>
2392
+ * @deprecated
2393
+ */
2394
+ ERR_VM_MODULE_NOT_LINKED = "ERR_VM_MODULE_NOT_LINKED",
2395
+ /**
2396
+ * <p>The pathname used for the main script of a worker has an
2397
+ * unknown file extension.</p>
2398
+ * <p><a id="ERR_ZLIB_BINDING_CLOSED"></a></p>
2399
+ * @deprecated
2400
+ */
2401
+ ERR_WORKER_UNSUPPORTED_EXTENSION = "ERR_WORKER_UNSUPPORTED_EXTENSION",
2402
+ /**
2403
+ * <p>Used when an attempt is made to use a <code>zlib</code> object after it has already been
2404
+ * closed.</p>
2405
+ * <p><a id="openssl-error-codes"></a></p>
2406
+ * @deprecated
2407
+ */
2408
+ ERR_ZLIB_BINDING_CLOSED = "ERR_ZLIB_BINDING_CLOSED"
2409
+ }
2410
+ export declare enum OpenSSLError {
2411
+ /**
2412
+ * <p>The certificate is not yet valid: the notBefore date is after the current time.</p>
2413
+ * <p><a id="CERT_HAS_EXPIRED"></a></p>
2414
+ */
2415
+ CERT_NOT_YET_VALID = "CERT_NOT_YET_VALID",
2416
+ /**
2417
+ * <p>The certificate has expired: the notAfter date is before the current time.</p>
2418
+ * <p><a id="CRL_NOT_YET_VALID"></a></p>
2419
+ */
2420
+ CERT_HAS_EXPIRED = "CERT_HAS_EXPIRED",
2421
+ /**
2422
+ * <p>The certificate revocation list (CRL) has a future issue date.</p>
2423
+ * <p><a id="CRL_HAS_EXPIRED"></a></p>
2424
+ */
2425
+ CRL_NOT_YET_VALID = "CRL_NOT_YET_VALID",
2426
+ /**
2427
+ * <p>The certificate revocation list (CRL) has expired.</p>
2428
+ * <p><a id="CERT_REVOKED"></a></p>
2429
+ */
2430
+ CRL_HAS_EXPIRED = "CRL_HAS_EXPIRED",
2431
+ /**
2432
+ * <p>The certificate has been revoked; it is on a certificate revocation list (CRL).</p>
2433
+ * <p><a id="Trust or Chain Related Errors"></a></p>
2434
+ */
2435
+ CERT_REVOKED = "CERT_REVOKED",
2436
+ /**
2437
+ * <p>The issuer certificate of a looked up certificate could not be found. This
2438
+ * normally means the list of trusted certificates is not complete.</p>
2439
+ * <p><a id="UNABLE_TO_GET_ISSUER_CERT_LOCALLY"></a></p>
2440
+ */
2441
+ UNABLE_TO_GET_ISSUER_CERT = "UNABLE_TO_GET_ISSUER_CERT",
2442
+ /**
2443
+ * <p>The certificate’s issuer is not known. This is the case if the issuer is not
2444
+ * included in the trusted certificate list.</p>
2445
+ * <p><a id="DEPTH_ZERO_SELF_SIGNED_CERT"></a></p>
2446
+ */
2447
+ UNABLE_TO_GET_ISSUER_CERT_LOCALLY = "UNABLE_TO_GET_ISSUER_CERT_LOCALLY",
2448
+ /**
2449
+ * <p>The passed certificate is self-signed and the same certificate cannot be found
2450
+ * in the list of trusted certificates.</p>
2451
+ * <p><a id="SELF_SIGNED_CERT_IN_CHAIN"></a></p>
2452
+ */
2453
+ DEPTH_ZERO_SELF_SIGNED_CERT = "DEPTH_ZERO_SELF_SIGNED_CERT",
2454
+ /**
2455
+ * <p>The certificate’s issuer is not known. This is the case if the issuer is not
2456
+ * included in the trusted certificate list.</p>
2457
+ * <p><a id="CERT_CHAIN_TOO_LONG"></a></p>
2458
+ */
2459
+ SELF_SIGNED_CERT_IN_CHAIN = "SELF_SIGNED_CERT_IN_CHAIN",
2460
+ /**
2461
+ * <p>The certificate chain length is greater than the maximum depth.</p>
2462
+ * <p><a id="UNABLE_TO_GET_CRL"></a></p>
2463
+ */
2464
+ CERT_CHAIN_TOO_LONG = "CERT_CHAIN_TOO_LONG",
2465
+ /**
2466
+ * <p>The CRL reference by the certificate could not be found.</p>
2467
+ * <p><a id="UNABLE_TO_VERIFY_LEAF_SIGNATURE"></a></p>
2468
+ */
2469
+ UNABLE_TO_GET_CRL = "UNABLE_TO_GET_CRL",
2470
+ /**
2471
+ * <p>No signatures could be verified because the chain contains only one certificate
2472
+ * and it is not self signed.</p>
2473
+ * <p><a id="CERT_UNTRUSTED"></a></p>
2474
+ */
2475
+ UNABLE_TO_VERIFY_LEAF_SIGNATURE = "UNABLE_TO_VERIFY_LEAF_SIGNATURE",
2476
+ /**
2477
+ * <p>The root certificate authority (CA) is not marked as trusted for the specified
2478
+ * purpose.</p>
2479
+ * <p><a id="Basic Extension Errors"></a></p>
2480
+ */
2481
+ CERT_UNTRUSTED = "CERT_UNTRUSTED",
2482
+ /**
2483
+ * <p>A CA certificate is invalid. Either it is not a CA or its extensions are not
2484
+ * consistent with the supplied purpose.</p>
2485
+ * <p><a id="PATH_LENGTH_EXCEEDED"></a></p>
2486
+ */
2487
+ INVALID_CA = "INVALID_CA",
2488
+ /**
2489
+ * <p>The basicConstraints pathlength parameter has been exceeded.</p>
2490
+ * <p><a id="Name Related Errors"></a></p>
2491
+ */
2492
+ PATH_LENGTH_EXCEEDED = "PATH_LENGTH_EXCEEDED",
2493
+ /**
2494
+ * <p>Certificate does not match provided name.</p>
2495
+ * <p><a id="Usage and Policy Errors"></a></p>
2496
+ */
2497
+ HOSTNAME_MISMATCH = "HOSTNAME_MISMATCH",
2498
+ /**
2499
+ * <p>The supplied certificate cannot be used for the specified purpose.</p>
2500
+ * <p><a id="CERT_REJECTED"></a></p>
2501
+ */
2502
+ INVALID_PURPOSE = "INVALID_PURPOSE",
2503
+ /**
2504
+ * <p>The root CA is marked to reject the specified purpose.</p>
2505
+ * <p><a id="Formatting Errors"></a></p>
2506
+ */
2507
+ CERT_REJECTED = "CERT_REJECTED",
2508
+ /**
2509
+ * <p>The signature of the certificate is invalid.</p>
2510
+ * <p><a id="CRL_SIGNATURE_FAILURE"></a></p>
2511
+ */
2512
+ CERT_SIGNATURE_FAILURE = "CERT_SIGNATURE_FAILURE",
2513
+ /**
2514
+ * <p>The signature of the certificate revocation list (CRL) is invalid.</p>
2515
+ * <p><a id="ERROR_IN_CERT_NOT_BEFORE_FIELD"></a></p>
2516
+ */
2517
+ CRL_SIGNATURE_FAILURE = "CRL_SIGNATURE_FAILURE",
2518
+ /**
2519
+ * <p>The certificate notBefore field contains an invalid time.</p>
2520
+ * <p><a id="ERROR_IN_CERT_NOT_AFTER_FIELD"></a></p>
2521
+ */
2522
+ ERROR_IN_CERT_NOT_BEFORE_FIELD = "ERROR_IN_CERT_NOT_BEFORE_FIELD",
2523
+ /**
2524
+ * <p>The certificate notAfter field contains an invalid time.</p>
2525
+ * <p><a id="ERROR_IN_CRL_LAST_UPDATE_FIELD"></a></p>
2526
+ */
2527
+ ERROR_IN_CERT_NOT_AFTER_FIELD = "ERROR_IN_CERT_NOT_AFTER_FIELD",
2528
+ /**
2529
+ * <p>The CRL lastUpdate field contains an invalid time.</p>
2530
+ * <p><a id="ERROR_IN_CRL_NEXT_UPDATE_FIELD"></a></p>
2531
+ */
2532
+ ERROR_IN_CRL_LAST_UPDATE_FIELD = "ERROR_IN_CRL_LAST_UPDATE_FIELD",
2533
+ /**
2534
+ * <p>The CRL nextUpdate field contains an invalid time.</p>
2535
+ * <p><a id="UNABLE_TO_DECRYPT_CERT_SIGNATURE"></a></p>
2536
+ */
2537
+ ERROR_IN_CRL_NEXT_UPDATE_FIELD = "ERROR_IN_CRL_NEXT_UPDATE_FIELD",
2538
+ /**
2539
+ * <p>The certificate signature could not be decrypted. This means that the actual
2540
+ * signature value could not be determined rather than it not matching the expected
2541
+ * value, this is only meaningful for RSA keys.</p>
2542
+ * <p><a id="UNABLE_TO_DECRYPT_CRL_SIGNATURE"></a></p>
2543
+ */
2544
+ UNABLE_TO_DECRYPT_CERT_SIGNATURE = "UNABLE_TO_DECRYPT_CERT_SIGNATURE",
2545
+ /**
2546
+ * <p>The certificate revocation list (CRL) signature could not be decrypted: this
2547
+ * means that the actual signature value could not be determined rather than it not
2548
+ * matching the expected value.</p>
2549
+ * <p><a id="UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY"></a></p>
2550
+ */
2551
+ UNABLE_TO_DECRYPT_CRL_SIGNATURE = "UNABLE_TO_DECRYPT_CRL_SIGNATURE",
2552
+ /**
2553
+ * <p>The public key in the certificate SubjectPublicKeyInfo could not be read.</p>
2554
+ * <p><a id="Other OpenSSL Errors"></a></p>
2555
+ */
2556
+ UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY = "UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY",
2557
+ /**
2558
+ * <p>An error occurred trying to allocate memory. This should never happen.</p>
2559
+ */
2560
+ OUT_OF_MEM = "OUT_OF_MEM"
2561
+ }
2562
+ //# sourceMappingURL=nodejs-error-code.generated.d.ts.map