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