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