@idlebox/node 1.4.6 → 1.4.7

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