@idlebox/node 1.3.7 → 1.3.9

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