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