-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy patherrors.json
More file actions
2184 lines (2184 loc) · 152 KB
/
errors.json
File metadata and controls
2184 lines (2184 loc) · 152 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
{
"type": "module",
"source": "doc/api/errors.md",
"introduced_in": "v4.0.0",
"classes": [
{
"textRaw": "Class: Error",
"type": "class",
"name": "Error",
"desc": "<p>A generic JavaScript <code>Error</code> object that does not denote any specific\ncircumstance of why the error occurred. <code>Error</code> objects capture a \"stack trace\"\ndetailing the point in the code at which the <code>Error</code> was instantiated, and may\nprovide a text description of the error.</p>\n<p>For crypto only, <code>Error</code> objects will include the OpenSSL error stack in a\nseparate property called <code>opensslErrorStack</code> if it is available when the error\nis thrown.</p>\n<p>All errors generated by Node.js, including all System and JavaScript errors,\nwill either be instances of, or inherit from, the <code>Error</code> class.</p>",
"methods": [
{
"textRaw": "Error.captureStackTrace(targetObject[, constructorOpt])",
"type": "method",
"name": "captureStackTrace",
"signatures": [
{
"params": [
{
"textRaw": "`targetObject` {Object}",
"name": "targetObject",
"type": "Object"
},
{
"textRaw": "`constructorOpt` {Function}",
"name": "constructorOpt",
"type": "Function",
"optional": true
}
]
}
],
"desc": "<p>Creates a <code>.stack</code> property on <code>targetObject</code>, which when accessed returns\na string representing the location in the code at which\n<code>Error.captureStackTrace()</code> was called.</p>\n<pre><code class=\"language-js\">const myObject = {};\nError.captureStackTrace(myObject);\nmyObject.stack; // similar to `new Error().stack`\n</code></pre>\n<p>The first line of the trace will be prefixed with\n<code>${myObject.name}: ${myObject.message}</code>.</p>\n<p>The optional <code>constructorOpt</code> argument accepts a function. If given, all frames\nabove <code>constructorOpt</code>, including <code>constructorOpt</code>, will be omitted from the\ngenerated stack trace.</p>\n<p>The <code>constructorOpt</code> argument is useful for hiding implementation\ndetails of error generation from an end user. For instance:</p>\n<pre><code class=\"language-js\">function MyError() {\n Error.captureStackTrace(this, MyError);\n}\n\n// Without passing MyError to captureStackTrace, the MyError\n// frame would show up in the .stack property. By passing\n// the constructor, we omit that frame, and retain all frames below it.\nnew MyError().stack;\n</code></pre>"
}
],
"properties": [
{
"textRaw": "`stackTraceLimit` {number}",
"type": "number",
"name": "stackTraceLimit",
"desc": "<p>The <code>Error.stackTraceLimit</code> property specifies the number of stack frames\ncollected by a stack trace (whether generated by <code>new Error().stack</code> or\n<code>Error.captureStackTrace(obj)</code>).</p>\n<p>The default value is <code>10</code> but may be set to any valid JavaScript number. Changes\nwill affect any stack trace captured <em>after</em> the value has been changed.</p>\n<p>If set to a non-number value, or set to a negative number, stack traces will\nnot capture any frames.</p>"
},
{
"textRaw": "`code` {string}",
"type": "string",
"name": "code",
"desc": "<p>The <code>error.code</code> property is a string label that identifies the kind of error.\n<code>error.code</code> is the most stable way to identify an error. It will only change\nbetween major versions of Node.js. In contrast, <code>error.message</code> strings may\nchange between any versions of Node.js. See <a href=\"#nodejs-error-codes\">Node.js Error Codes</a> for details\nabout specific codes.</p>"
},
{
"textRaw": "`message` {string}",
"type": "string",
"name": "message",
"desc": "<p>The <code>error.message</code> property is the string description of the error as set by\ncalling <code>new Error(message)</code>. The <code>message</code> passed to the constructor will also\nappear in the first line of the stack trace of the <code>Error</code>, however changing\nthis property after the <code>Error</code> object is created <em>may not</em> change the first\nline of the stack trace (for example, when <code>error.stack</code> is read before this\nproperty is changed).</p>\n<pre><code class=\"language-js\">const err = new Error('The message');\nconsole.error(err.message);\n// Prints: The message\n</code></pre>"
},
{
"textRaw": "`stack` {string}",
"type": "string",
"name": "stack",
"desc": "<p>The <code>error.stack</code> property is a string describing the point in the code at which\nthe <code>Error</code> was instantiated.</p>\n<pre><code class=\"language-txt\">Error: Things keep happening!\n at /home/gbusey/file.js:525:2\n at Frobnicator.refrobulate (/home/gbusey/business-logic.js:424:21)\n at Actor.<anonymous> (/home/gbusey/actors.js:400:8)\n at increaseSynergy (/home/gbusey/actors.js:701:6)\n</code></pre>\n<p>The first line is formatted as <code><error class name>: <error message></code>, and\nis followed by a series of stack frames (each line beginning with \"at \").\nEach frame describes a call site within the code that lead to the error being\ngenerated. V8 attempts to display a name for each function (by variable name,\nfunction name, or object method name), but occasionally it will not be able to\nfind a suitable name. If V8 cannot determine a name for the function, only\nlocation information will be displayed for that frame. Otherwise, the\ndetermined function name will be displayed with location information appended\nin parentheses.</p>\n<p>Frames are only generated for JavaScript functions. If, for example, execution\nsynchronously passes through a C++ addon function called <code>cheetahify</code> which\nitself calls a JavaScript function, the frame representing the <code>cheetahify</code> call\nwill not be present in the stack traces:</p>\n<pre><code class=\"language-js\">const cheetahify = require('./native-binding.node');\n\nfunction makeFaster() {\n // cheetahify *synchronously* calls speedy.\n cheetahify(function speedy() {\n throw new Error('oh no!');\n });\n}\n\nmakeFaster();\n// will throw:\n// /home/gbusey/file.js:6\n// throw new Error('oh no!');\n// ^\n// Error: oh no!\n// at speedy (/home/gbusey/file.js:6:11)\n// at makeFaster (/home/gbusey/file.js:5:3)\n// at Object.<anonymous> (/home/gbusey/file.js:10:1)\n// at Module._compile (module.js:456:26)\n// at Object.Module._extensions..js (module.js:474:10)\n// at Module.load (module.js:356:32)\n// at Function.Module._load (module.js:312:12)\n// at Function.Module.runMain (module.js:497:10)\n// at startup (node.js:119:16)\n// at node.js:906:3\n</code></pre>\n<p>The location information will be one of:</p>\n<ul>\n<li><code>native</code>, if the frame represents a call internal to V8 (as in <code>[].forEach</code>).</li>\n<li><code>plain-filename.js:line:column</code>, if the frame represents a call internal\nto Node.js.</li>\n<li><code>/absolute/path/to/file.js:line:column</code>, if the frame represents a call in\na user program, or its dependencies.</li>\n</ul>\n<p>The string representing the stack trace is lazily generated when the\n<code>error.stack</code> property is <strong>accessed</strong>.</p>\n<p>The number of frames captured by the stack trace is bounded by the smaller of\n<code>Error.stackTraceLimit</code> or the number of available frames on the current event\nloop tick.</p>\n<p>System-level errors are generated as augmented <code>Error</code> instances, which are\ndetailed <a href=\"#errors_system_errors\">here</a>.</p>"
}
],
"signatures": [
{
"params": [
{
"textRaw": "`message` {string}",
"name": "message",
"type": "string"
}
],
"desc": "<p>Creates a new <code>Error</code> object and sets the <code>error.message</code> property to the\nprovided text message. If an object is passed as <code>message</code>, the text message\nis generated by calling <code>message.toString()</code>. The <code>error.stack</code> property will\nrepresent the point in the code at which <code>new Error()</code> was called. Stack traces\nare dependent on <a href=\"https://github.com/v8/v8/wiki/Stack-Trace-API\">V8's stack trace API</a>. Stack traces extend only to either\n(a) the beginning of <em>synchronous code execution</em>, or (b) the number of frames\ngiven by the property <code>Error.stackTraceLimit</code>, whichever is smaller.</p>"
}
]
},
{
"textRaw": "Class: AssertionError",
"type": "class",
"name": "AssertionError",
"desc": "<p>A subclass of <code>Error</code> that indicates the failure of an assertion. For details,\nsee <a href=\"assert.html#assert_class_assert_assertionerror\"><code>Class: assert.AssertionError</code></a>.</p>"
},
{
"textRaw": "Class: RangeError",
"type": "class",
"name": "RangeError",
"desc": "<p>A subclass of <code>Error</code> that indicates that a provided argument was not within the\nset or range of acceptable values for a function; whether that is a numeric\nrange, or outside the set of options for a given function parameter.</p>\n<pre><code class=\"language-js\">require('net').connect(-1);\n// throws \"RangeError: \"port\" option should be >= 0 and < 65536: -1\"\n</code></pre>\n<p>Node.js will generate and throw <code>RangeError</code> instances <em>immediately</em> as a form\nof argument validation.</p>"
},
{
"textRaw": "Class: ReferenceError",
"type": "class",
"name": "ReferenceError",
"desc": "<p>A subclass of <code>Error</code> that indicates that an attempt is being made to access a\nvariable that is not defined. Such errors commonly indicate typos in code, or\nan otherwise broken program.</p>\n<p>While client code may generate and propagate these errors, in practice, only V8\nwill do so.</p>\n<pre><code class=\"language-js\">doesNotExist;\n// throws ReferenceError, doesNotExist is not a variable in this program.\n</code></pre>\n<p>Unless an application is dynamically generating and running code,\n<code>ReferenceError</code> instances should always be considered a bug in the code\nor its dependencies.</p>"
},
{
"textRaw": "Class: SyntaxError",
"type": "class",
"name": "SyntaxError",
"desc": "<p>A subclass of <code>Error</code> that indicates that a program is not valid JavaScript.\nThese errors may only be generated and propagated as a result of code\nevaluation. Code evaluation may happen as a result of <code>eval</code>, <code>Function</code>,\n<code>require</code>, or <a href=\"vm.html\">vm</a>. These errors are almost always indicative of a broken\nprogram.</p>\n<pre><code class=\"language-js\">try {\n require('vm').runInThisContext('binary ! isNotOk');\n} catch (err) {\n // err will be a SyntaxError\n}\n</code></pre>\n<p><code>SyntaxError</code> instances are unrecoverable in the context that created them –\nthey may only be caught by other contexts.</p>"
},
{
"textRaw": "Class: TypeError",
"type": "class",
"name": "TypeError",
"desc": "<p>A subclass of <code>Error</code> that indicates that a provided argument is not an\nallowable type. For example, passing a function to a parameter which expects a\nstring would be considered a <code>TypeError</code>.</p>\n<pre><code class=\"language-js\">require('url').parse(() => { });\n// throws TypeError, since it expected a string\n</code></pre>\n<p>Node.js will generate and throw <code>TypeError</code> instances <em>immediately</em> as a form\nof argument validation.</p>"
}
],
"miscs": [
{
"textRaw": "Errors",
"name": "Errors",
"introduced_in": "v4.0.0",
"type": "misc",
"desc": "<p>Applications running in Node.js will generally experience four categories of\nerrors:</p>\n<ul>\n<li>Standard JavaScript errors such as <a href=\"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/EvalError\" class=\"type\"><EvalError></a>, <a href=\"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SyntaxError\" class=\"type\"><SyntaxError></a>, <a href=\"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RangeError\" class=\"type\"><RangeError></a>,\n<a href=\"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ReferenceError\" class=\"type\"><ReferenceError></a>, <a href=\"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypeError\" class=\"type\"><TypeError></a>, and <a href=\"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/URIError\" class=\"type\"><URIError></a>.</li>\n<li>System errors triggered by underlying operating system constraints such\nas attempting to open a file that does not exist or attempting to send data\nover a closed socket.</li>\n<li>User-specified errors triggered by application code.</li>\n<li><code>AssertionError</code>s are a special class of error that can be triggered when\nNode.js detects an exceptional logic violation that should never occur. These\nare raised typically by the <code>assert</code> module.</li>\n</ul>\n<p>All JavaScript and System errors raised by Node.js inherit from, or are\ninstances of, the standard JavaScript <a href=\"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error\" class=\"type\"><Error></a> class and are guaranteed\nto provide <em>at least</em> the properties available on that class.</p>",
"miscs": [
{
"textRaw": "Error Propagation and Interception",
"name": "Error Propagation and Interception",
"type": "misc",
"desc": "<p>Node.js supports several mechanisms for propagating and handling errors that\noccur while an application is running. How these errors are reported and\nhandled depends entirely on the type of <code>Error</code> and the style of the API that is\ncalled.</p>\n<p>All JavaScript errors are handled as exceptions that <em>immediately</em> generate\nand throw an error using the standard JavaScript <code>throw</code> mechanism. These\nare handled using the <a href=\"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/try...catch\"><code>try…catch</code> construct</a> provided by the\nJavaScript language.</p>\n<pre><code class=\"language-js\">// Throws with a ReferenceError because z is undefined\ntry {\n const m = 1;\n const n = m + z;\n} catch (err) {\n // Handle the error here.\n}\n</code></pre>\n<p>Any use of the JavaScript <code>throw</code> mechanism will raise an exception that\n<em>must</em> be handled using <code>try…catch</code> or the Node.js process will exit\nimmediately.</p>\n<p>With few exceptions, <em>Synchronous</em> APIs (any blocking method that does not\naccept a <code>callback</code> function, such as <a href=\"fs.html#fs_fs_readfilesync_path_options\"><code>fs.readFileSync</code></a>), will use <code>throw</code>\nto report errors.</p>\n<p>Errors that occur within <em>Asynchronous APIs</em> may be reported in multiple ways:</p>\n<ul>\n<li>Most asynchronous methods that accept a <code>callback</code> function will accept an\n<code>Error</code> object passed as the first argument to that function. If that first\nargument is not <code>null</code> and is an instance of <code>Error</code>, then an error occurred\nthat should be handled.</li>\n</ul>\n<!-- eslint-disable no-useless-return -->\n<pre><code class=\"language-js\">const fs = require('fs');\nfs.readFile('a file that does not exist', (err, data) => {\n if (err) {\n console.error('There was an error reading the file!', err);\n return;\n }\n // Otherwise handle the data\n});\n</code></pre>\n<ul>\n<li>\n<p>When an asynchronous method is called on an object that is an\n<a href=\"events.html#events_class_eventemitter\"><code>EventEmitter</code></a>, errors can be routed to that object's <code>'error'</code> event.</p>\n<pre><code class=\"language-js\">const net = require('net');\nconst connection = net.connect('localhost');\n\n// Adding an 'error' event handler to a stream:\nconnection.on('error', (err) => {\n // If the connection is reset by the server, or if it can't\n // connect at all, or on any sort of error encountered by\n // the connection, the error will be sent here.\n console.error(err);\n});\n\nconnection.pipe(process.stdout);\n</code></pre>\n</li>\n<li>\n<p>A handful of typically asynchronous methods in the Node.js API may still\nuse the <code>throw</code> mechanism to raise exceptions that must be handled using\n<code>try…catch</code>. There is no comprehensive list of such methods; please\nrefer to the documentation of each method to determine the appropriate\nerror handling mechanism required.</p>\n</li>\n</ul>\n<p>The use of the <code>'error'</code> event mechanism is most common for <a href=\"stream.html\">stream-based</a>\nand <a href=\"events.html#events_class_eventemitter\">event emitter-based</a> APIs, which themselves represent a series of\nasynchronous operations over time (as opposed to a single operation that may\npass or fail).</p>\n<p>For <em>all</em> <a href=\"events.html#events_class_eventemitter\"><code>EventEmitter</code></a> objects, if an <code>'error'</code> event handler is not\nprovided, the error will be thrown, causing the Node.js process to report an\nuncaught exception and crash unless either: The <a href=\"domain.html\"><code>domain</code></a> module is\nused appropriately or a handler has been registered for the\n<a href=\"process.html#process_event_uncaughtexception\"><code>'uncaughtException'</code></a> event.</p>\n<pre><code class=\"language-js\">const EventEmitter = require('events');\nconst ee = new EventEmitter();\n\nsetImmediate(() => {\n // This will crash the process because no 'error' event\n // handler has been added.\n ee.emit('error', new Error('This will crash'));\n});\n</code></pre>\n<p>Errors generated in this way <em>cannot</em> be intercepted using <code>try…catch</code> as\nthey are thrown <em>after</em> the calling code has already exited.</p>\n<p>Developers must refer to the documentation for each method to determine\nexactly how errors raised by those methods are propagated.</p>",
"miscs": [
{
"textRaw": "Error-first callbacks",
"name": "Error-first callbacks",
"type": "misc",
"desc": "<p>Most asynchronous methods exposed by the Node.js core API follow an idiomatic\npattern referred to as an <em>error-first callback</em>. With this pattern, a callback\nfunction is passed to the method as an argument. When the operation either\ncompletes or an error is raised, the callback function is called with the\n<code>Error</code> object (if any) passed as the first argument. If no error was raised,\nthe first argument will be passed as <code>null</code>.</p>\n<pre><code class=\"language-js\">const fs = require('fs');\n\nfunction errorFirstCallback(err, data) {\n if (err) {\n console.error('There was an error', err);\n return;\n }\n console.log(data);\n}\n\nfs.readFile('/some/file/that/does-not-exist', errorFirstCallback);\nfs.readFile('/some/file/that/does-exist', errorFirstCallback);\n</code></pre>\n<p>The JavaScript <code>try…catch</code> mechanism <strong>cannot</strong> be used to intercept errors\ngenerated by asynchronous APIs. A common mistake for beginners is to try to\nuse <code>throw</code> inside an error-first callback:</p>\n<pre><code class=\"language-js\">// THIS WILL NOT WORK:\nconst fs = require('fs');\n\ntry {\n fs.readFile('/some/file/that/does-not-exist', (err, data) => {\n // mistaken assumption: throwing here...\n if (err) {\n throw err;\n }\n });\n} catch (err) {\n // This will not catch the throw!\n console.error(err);\n}\n</code></pre>\n<p>This will not work because the callback function passed to <code>fs.readFile()</code> is\ncalled asynchronously. By the time the callback has been called, the\nsurrounding code (including the <code>try { } catch (err) { }</code> block will have\nalready exited. Throwing an error inside the callback <strong>can crash the Node.js\nprocess</strong> in most cases. If <a href=\"domain.html\">domains</a> are enabled, or a handler has been\nregistered with <code>process.on('uncaughtException')</code>, such errors can be\nintercepted.</p>"
}
]
},
{
"textRaw": "Exceptions vs. Errors",
"name": "Exceptions vs. Errors",
"type": "misc",
"desc": "<p>A JavaScript exception is a value that is thrown as a result of an invalid\noperation or as the target of a <code>throw</code> statement. While it is not required\nthat these values are instances of <code>Error</code> or classes which inherit from\n<code>Error</code>, all exceptions thrown by Node.js or the JavaScript runtime <em>will</em> be\ninstances of <code>Error</code>.</p>\n<p>Some exceptions are <em>unrecoverable</em> at the JavaScript layer. Such exceptions\nwill <em>always</em> cause the Node.js process to crash. Examples include <code>assert()</code>\nchecks or <code>abort()</code> calls in the C++ layer.</p>"
},
{
"textRaw": "System Errors",
"name": "system_errors",
"desc": "<p>Node.js generates system errors when exceptions occur within its runtime\nenvironment. These usually occur when an application violates an operating\nsystem constraint. For example, a system error will occur if an application\nattempts to read a file that does not exist.</p>\n<p>System errors are usually generated at the syscall level. For a comprehensive\nlist, see the <a href=\"http://man7.org/linux/man-pages/man3/errno.3.html\"><code>errno</code>(3) man page</a>.</p>\n<p>In Node.js, system errors are <code>Error</code> objects with extra properties.</p>",
"classes": [
{
"textRaw": "Class: SystemError",
"type": "class",
"name": "SystemError",
"desc": "<ul>\n<li><code>address</code> <a href=\"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type\" class=\"type\"><string></a> If present, the address to which a network connection\nfailed</li>\n<li><code>code</code> <a href=\"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type\" class=\"type\"><string></a> The string error code</li>\n<li><code>dest</code> <a href=\"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type\" class=\"type\"><string></a> If present, the file path destination when reporting a file\nsystem error</li>\n<li><code>errno</code> <a href=\"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Number_type\" class=\"type\"><number></a> | <a href=\"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type\" class=\"type\"><string></a> The system-provided error number</li>\n<li><code>info</code> <a href=\"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object\" class=\"type\"><Object></a> If present, extra details about the error condition</li>\n<li><code>message</code> <a href=\"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type\" class=\"type\"><string></a> A system-provided human-readable description of the error</li>\n<li><code>path</code> <a href=\"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type\" class=\"type\"><string></a> If present, the file path when reporting a file system error</li>\n<li><code>port</code> <a href=\"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Number_type\" class=\"type\"><number></a> If present, the network connection port that is not available</li>\n<li><code>syscall</code> <a href=\"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type\" class=\"type\"><string></a> The name of the system call that triggered the error</li>\n</ul>",
"properties": [
{
"textRaw": "`address` {string}",
"type": "string",
"name": "address",
"desc": "<p>If present, <code>error.address</code> is a string describing the address to which a\nnetwork connection failed.</p>"
},
{
"textRaw": "`code` {string}",
"type": "string",
"name": "code",
"desc": "<p>The <code>error.code</code> property is a string representing the error code.</p>"
},
{
"textRaw": "`dest` {string}",
"type": "string",
"name": "dest",
"desc": "<p>If present, <code>error.dest</code> is the file path destination when reporting a file\nsystem error.</p>"
},
{
"textRaw": "`errno` {string|number}",
"type": "string|number",
"name": "errno",
"desc": "<p>The <code>error.errno</code> property is a number or a string. If it is a number, it is a\nnegative value which corresponds to the error code defined in\n<a href=\"http://docs.libuv.org/en/v1.x/errors.html\"><code>libuv Error handling</code></a>. See the libuv <code>errno.h</code> header file\n(<code>deps/uv/include/uv/errno.h</code> in the Node.js source tree) for details. In case\nof a string, it is the same as <code>error.code</code>.</p>"
},
{
"textRaw": "`info` {Object}",
"type": "Object",
"name": "info",
"desc": "<p>If present, <code>error.info</code> is an object with details about the error condition.</p>"
},
{
"textRaw": "`message` {string}",
"type": "string",
"name": "message",
"desc": "<p><code>error.message</code> is a system-provided human-readable description of the error.</p>"
},
{
"textRaw": "`path` {string}",
"type": "string",
"name": "path",
"desc": "<p>If present, <code>error.path</code> is a string containing a relevant invalid pathname.</p>"
},
{
"textRaw": "`port` {number}",
"type": "number",
"name": "port",
"desc": "<p>If present, <code>error.port</code> is the network connection port that is not available.</p>"
},
{
"textRaw": "`syscall` {string}",
"type": "string",
"name": "syscall",
"desc": "<p>The <code>error.syscall</code> property is a string describing the <a href=\"http://man7.org/linux/man-pages/man2/syscalls.2.html\">syscall</a> that failed.</p>"
}
]
}
],
"modules": [
{
"textRaw": "Common System Errors",
"name": "common_system_errors",
"desc": "<p>This is a list of system errors commonly-encountered when writing a Node.js\nprogram. For a comprehensive list, see the <a href=\"http://man7.org/linux/man-pages/man3/errno.3.html\"><code>errno</code>(3) man page</a>.</p>\n<ul>\n<li>\n<p><code>EACCES</code> (Permission denied): An attempt was made to access a file in a way\nforbidden by its file access permissions.</p>\n</li>\n<li>\n<p><code>EADDRINUSE</code> (Address already in use): An attempt to bind a server\n(<a href=\"net.html\"><code>net</code></a>, <a href=\"http.html\"><code>http</code></a>, or <a href=\"https.html\"><code>https</code></a>) to a local address failed due to\nanother server on the local system already occupying that address.</p>\n</li>\n<li>\n<p><code>ECONNREFUSED</code> (Connection refused): No connection could be made because the\ntarget machine actively refused it. This usually results from trying to\nconnect to a service that is inactive on the foreign host.</p>\n</li>\n<li>\n<p><code>ECONNRESET</code> (Connection reset by peer): A connection was forcibly closed by\na peer. This normally results from a loss of the connection on the remote\nsocket due to a timeout or reboot. Commonly encountered via the <a href=\"http.html\"><code>http</code></a>\nand <a href=\"net.html\"><code>net</code></a> modules.</p>\n</li>\n<li>\n<p><code>EEXIST</code> (File exists): An existing file was the target of an operation that\nrequired that the target not exist.</p>\n</li>\n<li>\n<p><code>EISDIR</code> (Is a directory): An operation expected a file, but the given\npathname was a directory.</p>\n</li>\n<li>\n<p><code>EMFILE</code> (Too many open files in system): Maximum number of\n<a href=\"https://en.wikipedia.org/wiki/File_descriptor\">file descriptors</a> allowable on the system has been reached, and\nrequests for another descriptor cannot be fulfilled until at least one\nhas been closed. This is encountered when opening many files at once in\nparallel, especially on systems (in particular, macOS) where there is a low\nfile descriptor limit for processes. To remedy a low limit, run\n<code>ulimit -n 2048</code> in the same shell that will run the Node.js process.</p>\n</li>\n<li>\n<p><code>ENOENT</code> (No such file or directory): Commonly raised by <a href=\"fs.html\"><code>fs</code></a> operations\nto indicate that a component of the specified pathname does not exist — no\nentity (file or directory) could be found by the given path.</p>\n</li>\n<li>\n<p><code>ENOTDIR</code> (Not a directory): A component of the given pathname existed, but\nwas not a directory as expected. Commonly raised by <a href=\"fs.html#fs_fs_readdir_path_options_callback\"><code>fs.readdir</code></a>.</p>\n</li>\n<li>\n<p><code>ENOTEMPTY</code> (Directory not empty): A directory with entries was the target\nof an operation that requires an empty directory — usually <a href=\"fs.html#fs_fs_unlink_path_callback\"><code>fs.unlink</code></a>.</p>\n</li>\n<li>\n<p><code>EPERM</code> (Operation not permitted): An attempt was made to perform an\noperation that requires elevated privileges.</p>\n</li>\n<li>\n<p><code>EPIPE</code> (Broken pipe): A write on a pipe, socket, or FIFO for which there is\nno process to read the data. Commonly encountered at the <a href=\"net.html\"><code>net</code></a> and\n<a href=\"http.html\"><code>http</code></a> layers, indicative that the remote side of the stream being\nwritten to has been closed.</p>\n</li>\n<li>\n<p><code>ETIMEDOUT</code> (Operation timed out): A connect or send request failed because\nthe connected party did not properly respond after a period of time. Usually\nencountered by <a href=\"http.html\"><code>http</code></a> or <a href=\"net.html\"><code>net</code></a> — often a sign that a <code>socket.end()</code>\nwas not properly called.</p>\n</li>\n</ul>\n<p><a id=\"nodejs-error-codes\"></a></p>",
"type": "module",
"displayName": "Common System Errors"
}
],
"type": "misc",
"displayName": "System Errors"
},
{
"textRaw": "Node.js Error Codes",
"name": "node.js_error_codes",
"desc": "<p><a id=\"ERR_AMBIGUOUS_ARGUMENT\"></a></p>",
"modules": [
{
"textRaw": "ERR_AMBIGUOUS_ARGUMENT",
"name": "err_ambiguous_argument",
"desc": "<p>A function argument is being used in a way that suggests that the function\nsignature may be misunderstood. This is thrown by the <code>assert</code> module when the\n<code>message</code> parameter in <code>assert.throws(block, message)</code> matches the error message\nthrown by <code>block</code> because that usage suggests that the user believes <code>message</code>\nis the expected message rather than the message the <code>AssertionError</code> will\ndisplay if <code>block</code> does not throw.</p>\n<p><a id=\"ERR_ARG_NOT_ITERABLE\"></a></p>",
"type": "module",
"displayName": "ERR_AMBIGUOUS_ARGUMENT"
},
{
"textRaw": "ERR_ARG_NOT_ITERABLE",
"name": "err_arg_not_iterable",
"desc": "<p>An iterable argument (i.e. a value that works with <code>for...of</code> loops) was\nrequired, but not provided to a Node.js API.</p>\n<p><a id=\"ERR_ASSERTION\"></a></p>",
"type": "module",
"displayName": "ERR_ARG_NOT_ITERABLE"
},
{
"textRaw": "ERR_ASSERTION",
"name": "err_assertion",
"desc": "<p>A special type of error that can be triggered whenever Node.js detects an\nexceptional logic violation that should never occur. These are raised typically\nby the <code>assert</code> module.</p>\n<p><a id=\"ERR_ASYNC_CALLBACK\"></a></p>",
"type": "module",
"displayName": "ERR_ASSERTION"
},
{
"textRaw": "ERR_ASYNC_CALLBACK",
"name": "err_async_callback",
"desc": "<p>An attempt was made to register something that is not a function as an\n<code>AsyncHooks</code> callback.</p>\n<p><a id=\"ERR_ASYNC_TYPE\"></a></p>",
"type": "module",
"displayName": "ERR_ASYNC_CALLBACK"
},
{
"textRaw": "ERR_ASYNC_TYPE",
"name": "err_async_type",
"desc": "<p>The type of an asynchronous resource was invalid. Note that users are also able\nto define their own types if using the public embedder API.</p>\n<p><a id=\"ERR_BUFFER_CONTEXT_NOT_AVAILABLE\"></a></p>",
"type": "module",
"displayName": "ERR_ASYNC_TYPE"
},
{
"textRaw": "ERR_BUFFER_CONTEXT_NOT_AVAILABLE",
"name": "err_buffer_context_not_available",
"desc": "<p>An attempt was made to create a Node.js <code>Buffer</code> instance from addon or embedder\ncode, while in a JS engine Context that is not associated with a Node.js\ninstance. The data passed to the <code>Buffer</code> method will have been released\nby the time the method returns.</p>\n<p>When encountering this error, a possible alternative to creating a <code>Buffer</code>\ninstance is to create a normal <code>Uint8Array</code>, which only differs in the\nprototype of the resulting object. <code>Uint8Array</code>s are generally accepted in all\nNode.js core APIs where <code>Buffer</code>s are; they are available in all Contexts.</p>\n<p><a id=\"ERR_BUFFER_OUT_OF_BOUNDS\"></a></p>",
"type": "module",
"displayName": "ERR_BUFFER_CONTEXT_NOT_AVAILABLE"
},
{
"textRaw": "ERR_BUFFER_OUT_OF_BOUNDS",
"name": "err_buffer_out_of_bounds",
"desc": "<p>An operation outside the bounds of a <code>Buffer</code> was attempted.</p>\n<p><a id=\"ERR_BUFFER_TOO_LARGE\"></a></p>",
"type": "module",
"displayName": "ERR_BUFFER_OUT_OF_BOUNDS"
},
{
"textRaw": "ERR_BUFFER_TOO_LARGE",
"name": "err_buffer_too_large",
"desc": "<p>An attempt has been made to create a <code>Buffer</code> larger than the maximum allowed\nsize.</p>\n<p><a id=\"ERR_CANNOT_TRANSFER_OBJECT\"></a></p>",
"type": "module",
"displayName": "ERR_BUFFER_TOO_LARGE"
},
{
"textRaw": "ERR_CANNOT_TRANSFER_OBJECT",
"name": "err_cannot_transfer_object",
"desc": "<p>The value passed to <code>postMessage()</code> contained an object that is not supported\nfor transferring.</p>\n<p><a id=\"ERR_CANNOT_WATCH_SIGINT\"></a></p>",
"type": "module",
"displayName": "ERR_CANNOT_TRANSFER_OBJECT"
},
{
"textRaw": "ERR_CANNOT_WATCH_SIGINT",
"name": "err_cannot_watch_sigint",
"desc": "<p>Node.js was unable to watch for the <code>SIGINT</code> signal.</p>\n<p><a id=\"ERR_CHILD_CLOSED_BEFORE_REPLY\"></a></p>",
"type": "module",
"displayName": "ERR_CANNOT_WATCH_SIGINT"
},
{
"textRaw": "ERR_CHILD_CLOSED_BEFORE_REPLY",
"name": "err_child_closed_before_reply",
"desc": "<p>A child process was closed before the parent received a reply.</p>\n<p><a id=\"ERR_CHILD_PROCESS_IPC_REQUIRED\"></a></p>",
"type": "module",
"displayName": "ERR_CHILD_CLOSED_BEFORE_REPLY"
},
{
"textRaw": "ERR_CHILD_PROCESS_IPC_REQUIRED",
"name": "err_child_process_ipc_required",
"desc": "<p>Used when a child process is being forked without specifying an IPC channel.</p>\n<p><a id=\"ERR_CHILD_PROCESS_STDIO_MAXBUFFER\"></a></p>",
"type": "module",
"displayName": "ERR_CHILD_PROCESS_IPC_REQUIRED"
},
{
"textRaw": "ERR_CHILD_PROCESS_STDIO_MAXBUFFER",
"name": "err_child_process_stdio_maxbuffer",
"desc": "<p>Used when the main process is trying to read data from the child process's\nSTDERR/STDOUT, and the data's length is longer than the <code>maxBuffer</code> option.</p>\n<p><a id=\"ERR_CLOSED_MESSAGE_PORT\"></a></p>",
"type": "module",
"displayName": "ERR_CHILD_PROCESS_STDIO_MAXBUFFER"
},
{
"textRaw": "ERR_CLOSED_MESSAGE_PORT",
"name": "err_closed_message_port",
"desc": "<p>There was an attempt to use a <code>MessagePort</code> instance in a closed\nstate, usually after <code>.close()</code> has been called.</p>\n<p><a id=\"ERR_CONSOLE_WRITABLE_STREAM\"></a></p>",
"type": "module",
"displayName": "ERR_CLOSED_MESSAGE_PORT"
},
{
"textRaw": "ERR_CONSOLE_WRITABLE_STREAM",
"name": "err_console_writable_stream",
"desc": "<p><code>Console</code> was instantiated without <code>stdout</code> stream, or <code>Console</code> has a\nnon-writable <code>stdout</code> or <code>stderr</code> stream.</p>\n<p><a id=\"ERR_CONSTRUCT_CALL_REQUIRED\"></a></p>",
"type": "module",
"displayName": "ERR_CONSOLE_WRITABLE_STREAM"
},
{
"textRaw": "ERR_CONSTRUCT_CALL_REQUIRED",
"name": "err_construct_call_required",
"desc": "<p>A constructor for a class was called without <code>new</code>.</p>\n<p><a id=\"ERR_CPU_USAGE\"></a></p>",
"type": "module",
"displayName": "ERR_CONSTRUCT_CALL_REQUIRED"
},
{
"textRaw": "ERR_CPU_USAGE",
"name": "err_cpu_usage",
"desc": "<p>The native call from <code>process.cpuUsage</code> could not be processed.</p>\n<p><a id=\"ERR_CRYPTO_CUSTOM_ENGINE_NOT_SUPPORTED\"></a></p>",
"type": "module",
"displayName": "ERR_CPU_USAGE"
},
{
"textRaw": "ERR_CRYPTO_CUSTOM_ENGINE_NOT_SUPPORTED",
"name": "err_crypto_custom_engine_not_supported",
"desc": "<p>A client certificate engine was requested that is not supported by the version\nof OpenSSL being used.</p>\n<p><a id=\"ERR_CRYPTO_ECDH_INVALID_FORMAT\"></a></p>",
"type": "module",
"displayName": "ERR_CRYPTO_CUSTOM_ENGINE_NOT_SUPPORTED"
},
{
"textRaw": "ERR_CRYPTO_ECDH_INVALID_FORMAT",
"name": "err_crypto_ecdh_invalid_format",
"desc": "<p>An invalid value for the <code>format</code> argument was passed to the <code>crypto.ECDH()</code>\nclass <code>getPublicKey()</code> method.</p>\n<p><a id=\"ERR_CRYPTO_ECDH_INVALID_PUBLIC_KEY\"></a></p>",
"type": "module",
"displayName": "ERR_CRYPTO_ECDH_INVALID_FORMAT"
},
{
"textRaw": "ERR_CRYPTO_ECDH_INVALID_PUBLIC_KEY",
"name": "err_crypto_ecdh_invalid_public_key",
"desc": "<p>An invalid value for the <code>key</code> argument has been passed to the\n<code>crypto.ECDH()</code> class <code>computeSecret()</code> method. It means that the public\nkey lies outside of the elliptic curve.</p>\n<p><a id=\"ERR_CRYPTO_ENGINE_UNKNOWN\"></a></p>",
"type": "module",
"displayName": "ERR_CRYPTO_ECDH_INVALID_PUBLIC_KEY"
},
{
"textRaw": "ERR_CRYPTO_ENGINE_UNKNOWN",
"name": "err_crypto_engine_unknown",
"desc": "<p>An invalid crypto engine identifier was passed to\n<a href=\"crypto.html#crypto_crypto_setengine_engine_flags\"><code>require('crypto').setEngine()</code></a>.</p>\n<p><a id=\"ERR_CRYPTO_FIPS_FORCED\"></a></p>",
"type": "module",
"displayName": "ERR_CRYPTO_ENGINE_UNKNOWN"
},
{
"textRaw": "ERR_CRYPTO_FIPS_FORCED",
"name": "err_crypto_fips_forced",
"desc": "<p>The <a href=\"cli.html#cli_force_fips\"><code>--force-fips</code></a> command-line argument was used but there was an attempt\nto enable or disable FIPS mode in the <code>crypto</code> module.</p>\n<p><a id=\"ERR_CRYPTO_FIPS_UNAVAILABLE\"></a></p>",
"type": "module",
"displayName": "ERR_CRYPTO_FIPS_FORCED"
},
{
"textRaw": "ERR_CRYPTO_FIPS_UNAVAILABLE",
"name": "err_crypto_fips_unavailable",
"desc": "<p>An attempt was made to enable or disable FIPS mode, but FIPS mode was not\navailable.</p>\n<p><a id=\"ERR_CRYPTO_HASH_DIGEST_NO_UTF16\"></a></p>",
"type": "module",
"displayName": "ERR_CRYPTO_FIPS_UNAVAILABLE"
},
{
"textRaw": "ERR_CRYPTO_HASH_DIGEST_NO_UTF16",
"name": "err_crypto_hash_digest_no_utf16",
"desc": "<p>The UTF-16 encoding was used with <a href=\"crypto.html#crypto_hash_digest_encoding\"><code>hash.digest()</code></a>. While the\n<code>hash.digest()</code> method does allow an <code>encoding</code> argument to be passed in,\ncausing the method to return a string rather than a <code>Buffer</code>, the UTF-16\nencoding (e.g. <code>ucs</code> or <code>utf16le</code>) is not supported.</p>\n<p><a id=\"ERR_CRYPTO_HASH_FINALIZED\"></a></p>",
"type": "module",
"displayName": "ERR_CRYPTO_HASH_DIGEST_NO_UTF16"
},
{
"textRaw": "ERR_CRYPTO_HASH_FINALIZED",
"name": "err_crypto_hash_finalized",
"desc": "<p><a href=\"crypto.html#crypto_hash_digest_encoding\"><code>hash.digest()</code></a> was called multiple times. The <code>hash.digest()</code> method must\nbe called no more than one time per instance of a <code>Hash</code> object.</p>\n<p><a id=\"ERR_CRYPTO_HASH_UPDATE_FAILED\"></a></p>",
"type": "module",
"displayName": "ERR_CRYPTO_HASH_FINALIZED"
},
{
"textRaw": "ERR_CRYPTO_HASH_UPDATE_FAILED",
"name": "err_crypto_hash_update_failed",
"desc": "<p><a href=\"crypto.html#crypto_hash_update_data_inputencoding\"><code>hash.update()</code></a> failed for any reason. This should rarely, if ever, happen.</p>\n<p><a id=\"ERR_CRYPTO_INCOMPATIBLE_KEY_OPTIONS\"></a></p>",
"type": "module",
"displayName": "ERR_CRYPTO_HASH_UPDATE_FAILED"
},
{
"textRaw": "ERR_CRYPTO_INCOMPATIBLE_KEY_OPTIONS",
"name": "err_crypto_incompatible_key_options",
"desc": "<p>The selected public or private key encoding is incompatible with other options.</p>\n<p><a id=\"ERR_CRYPTO_INVALID_DIGEST\"></a></p>",
"type": "module",
"displayName": "ERR_CRYPTO_INCOMPATIBLE_KEY_OPTIONS"
},
{
"textRaw": "ERR_CRYPTO_INVALID_DIGEST",
"name": "err_crypto_invalid_digest",
"desc": "<p>An invalid <a href=\"crypto.html#crypto_crypto_gethashes\">crypto digest algorithm</a> was specified.</p>\n<p><a id=\"ERR_CRYPTO_INVALID_STATE\"></a></p>",
"type": "module",
"displayName": "ERR_CRYPTO_INVALID_DIGEST"
},
{
"textRaw": "ERR_CRYPTO_INVALID_STATE",
"name": "err_crypto_invalid_state",
"desc": "<p>A crypto method was used on an object that was in an invalid state. For\ninstance, calling <a href=\"crypto.html#crypto_cipher_getauthtag\"><code>cipher.getAuthTag()</code></a> before calling <code>cipher.final()</code>.</p>\n<p><a id=\"ERR_CRYPTO_PBKDF2_ERROR\"></a></p>",
"type": "module",
"displayName": "ERR_CRYPTO_INVALID_STATE"
},
{
"textRaw": "ERR_CRYPTO_PBKDF2_ERROR",
"name": "err_crypto_pbkdf2_error",
"desc": "<p>The PBKDF2 algorithm failed for unspecified reasons. OpenSSL does not provide\nmore details and therefore neither does Node.js.</p>\n<p><a id=\"ERR_CRYPTO_SCRYPT_INVALID_PARAMETER\"></a></p>",
"type": "module",
"displayName": "ERR_CRYPTO_PBKDF2_ERROR"
},
{
"textRaw": "ERR_CRYPTO_SCRYPT_INVALID_PARAMETER",
"name": "err_crypto_scrypt_invalid_parameter",
"desc": "<p>One or more <a href=\"crypto.html#crypto_crypto_scrypt_password_salt_keylen_options_callback\"><code>crypto.scrypt()</code></a> or <a href=\"crypto.html#crypto_crypto_scryptsync_password_salt_keylen_options\"><code>crypto.scryptSync()</code></a> parameters are\noutside their legal range.</p>\n<p><a id=\"ERR_CRYPTO_SCRYPT_NOT_SUPPORTED\"></a></p>",
"type": "module",
"displayName": "ERR_CRYPTO_SCRYPT_INVALID_PARAMETER"
},
{
"textRaw": "ERR_CRYPTO_SCRYPT_NOT_SUPPORTED",
"name": "err_crypto_scrypt_not_supported",
"desc": "<p>Node.js was compiled without <code>scrypt</code> support. Not possible with the official\nrelease binaries but can happen with custom builds, including distro builds.</p>\n<p><a id=\"ERR_CRYPTO_SIGN_KEY_REQUIRED\"></a></p>",
"type": "module",
"displayName": "ERR_CRYPTO_SCRYPT_NOT_SUPPORTED"
},
{
"textRaw": "ERR_CRYPTO_SIGN_KEY_REQUIRED",
"name": "err_crypto_sign_key_required",
"desc": "<p>A signing <code>key</code> was not provided to the <a href=\"crypto.html#crypto_sign_sign_privatekey_outputencoding\"><code>sign.sign()</code></a> method.</p>\n<p><a id=\"ERR_CRYPTO_TIMING_SAFE_EQUAL_LENGTH\"></a></p>",
"type": "module",
"displayName": "ERR_CRYPTO_SIGN_KEY_REQUIRED"
},
{
"textRaw": "ERR_CRYPTO_TIMING_SAFE_EQUAL_LENGTH",
"name": "err_crypto_timing_safe_equal_length",
"desc": "<p><a href=\"crypto.html#crypto_crypto_timingsafeequal_a_b\"><code>crypto.timingSafeEqual()</code></a> was called with <code>Buffer</code>, <code>TypedArray</code>, or\n<code>DataView</code> arguments of different lengths.</p>\n<p><a id=\"ERR_DNS_SET_SERVERS_FAILED\"></a></p>",
"type": "module",
"displayName": "ERR_CRYPTO_TIMING_SAFE_EQUAL_LENGTH"
},
{
"textRaw": "ERR_DNS_SET_SERVERS_FAILED",
"name": "err_dns_set_servers_failed",
"desc": "<p><code>c-ares</code> failed to set the DNS server.</p>\n<p><a id=\"ERR_DOMAIN_CALLBACK_NOT_AVAILABLE\"></a></p>",
"type": "module",
"displayName": "ERR_DNS_SET_SERVERS_FAILED"
},
{
"textRaw": "ERR_DOMAIN_CALLBACK_NOT_AVAILABLE",
"name": "err_domain_callback_not_available",
"desc": "<p>The <code>domain</code> module was not usable since it could not establish the required\nerror handling hooks, because\n<a href=\"process.html#process_process_setuncaughtexceptioncapturecallback_fn\"><code>process.setUncaughtExceptionCaptureCallback()</code></a> had been called at an\nearlier point in time.</p>\n<p><a id=\"ERR_DOMAIN_CANNOT_SET_UNCAUGHT_EXCEPTION_CAPTURE\"></a></p>",
"type": "module",
"displayName": "ERR_DOMAIN_CALLBACK_NOT_AVAILABLE"
},
{
"textRaw": "ERR_DOMAIN_CANNOT_SET_UNCAUGHT_EXCEPTION_CAPTURE",
"name": "err_domain_cannot_set_uncaught_exception_capture",
"desc": "<p><a href=\"process.html#process_process_setuncaughtexceptioncapturecallback_fn\"><code>process.setUncaughtExceptionCaptureCallback()</code></a> could not be called\nbecause the <code>domain</code> module has been loaded at an earlier point in time.</p>\n<p>The stack trace is extended to include the point in time at which the\n<code>domain</code> module had been loaded.</p>\n<p><a id=\"ERR_ENCODING_INVALID_ENCODED_DATA\"></a></p>",
"type": "module",
"displayName": "ERR_DOMAIN_CANNOT_SET_UNCAUGHT_EXCEPTION_CAPTURE"
},
{
"textRaw": "ERR_ENCODING_INVALID_ENCODED_DATA",
"name": "err_encoding_invalid_encoded_data",
"desc": "<p>Data provided to <code>TextDecoder()</code> API was invalid according to the encoding\nprovided.</p>\n<p><a id=\"ERR_ENCODING_NOT_SUPPORTED\"></a></p>",
"type": "module",
"displayName": "ERR_ENCODING_INVALID_ENCODED_DATA"
},
{
"textRaw": "ERR_ENCODING_NOT_SUPPORTED",
"name": "err_encoding_not_supported",
"desc": "<p>Encoding provided to <code>TextDecoder()</code> API was not one of the\n<a href=\"util.html#util_whatwg_supported_encodings\">WHATWG Supported Encodings</a>.</p>\n<p><a id=\"ERR_FALSY_VALUE_REJECTION\"></a></p>",
"type": "module",
"displayName": "ERR_ENCODING_NOT_SUPPORTED"
},
{
"textRaw": "ERR_FALSY_VALUE_REJECTION",
"name": "err_falsy_value_rejection",
"desc": "<p>A <code>Promise</code> that was callbackified via <code>util.callbackify()</code> was rejected with a\nfalsy value.</p>\n<p><a id=\"ERR_FS_FILE_TOO_LARGE\"></a></p>",
"type": "module",
"displayName": "ERR_FALSY_VALUE_REJECTION"
},
{
"textRaw": "ERR_FS_FILE_TOO_LARGE",
"name": "err_fs_file_too_large",
"desc": "<p>An attempt has been made to read a file whose size is larger than the maximum\nallowed size for a <code>Buffer</code>.</p>\n<p><a id=\"ERR_FS_INVALID_SYMLINK_TYPE\"></a></p>",
"type": "module",
"displayName": "ERR_FS_FILE_TOO_LARGE"
},
{
"textRaw": "ERR_FS_INVALID_SYMLINK_TYPE",
"name": "err_fs_invalid_symlink_type",
"desc": "<p>An invalid symlink type was passed to the <a href=\"fs.html#fs_fs_symlink_target_path_type_callback\"><code>fs.symlink()</code></a> or\n<a href=\"fs.html#fs_fs_symlinksync_target_path_type\"><code>fs.symlinkSync()</code></a> methods.</p>\n<p><a id=\"ERR_HTTP_HEADERS_SENT\"></a></p>",
"type": "module",
"displayName": "ERR_FS_INVALID_SYMLINK_TYPE"
},
{
"textRaw": "ERR_HTTP_HEADERS_SENT",
"name": "err_http_headers_sent",
"desc": "<p>An attempt was made to add more headers after the headers had already been sent.</p>\n<p><a id=\"ERR_HTTP_INVALID_HEADER_VALUE\"></a></p>",
"type": "module",
"displayName": "ERR_HTTP_HEADERS_SENT"
},
{
"textRaw": "ERR_HTTP_INVALID_HEADER_VALUE",
"name": "err_http_invalid_header_value",
"desc": "<p>An invalid HTTP header value was specified.</p>\n<p><a id=\"ERR_HTTP_INVALID_STATUS_CODE\"></a></p>",
"type": "module",
"displayName": "ERR_HTTP_INVALID_HEADER_VALUE"
},
{
"textRaw": "ERR_HTTP_INVALID_STATUS_CODE",
"name": "err_http_invalid_status_code",
"desc": "<p>Status code was outside the regular status code range (100-999).</p>\n<p><a id=\"ERR_HTTP_TRAILER_INVALID\"></a></p>",
"type": "module",
"displayName": "ERR_HTTP_INVALID_STATUS_CODE"
},
{
"textRaw": "ERR_HTTP_TRAILER_INVALID",
"name": "err_http_trailer_invalid",
"desc": "<p>The <code>Trailer</code> header was set even though the transfer encoding does not support\nthat.</p>\n<p><a id=\"ERR_HTTP2_ALTSVC_INVALID_ORIGIN\"></a></p>",
"type": "module",
"displayName": "ERR_HTTP_TRAILER_INVALID"
},
{
"textRaw": "ERR_HTTP2_ALTSVC_INVALID_ORIGIN",
"name": "err_http2_altsvc_invalid_origin",
"desc": "<p>HTTP/2 ALTSVC frames require a valid origin.</p>\n<p><a id=\"ERR_HTTP2_ALTSVC_LENGTH\"></a></p>",
"type": "module",
"displayName": "ERR_HTTP2_ALTSVC_INVALID_ORIGIN"
},
{
"textRaw": "ERR_HTTP2_ALTSVC_LENGTH",
"name": "err_http2_altsvc_length",
"desc": "<p>HTTP/2 ALTSVC frames are limited to a maximum of 16,382 payload bytes.</p>\n<p><a id=\"ERR_HTTP2_CONNECT_AUTHORITY\"></a></p>",
"type": "module",
"displayName": "ERR_HTTP2_ALTSVC_LENGTH"
},
{
"textRaw": "ERR_HTTP2_CONNECT_AUTHORITY",
"name": "err_http2_connect_authority",
"desc": "<p>For HTTP/2 requests using the <code>CONNECT</code> method, the <code>:authority</code> pseudo-header\nis required.</p>\n<p><a id=\"ERR_HTTP2_CONNECT_PATH\"></a></p>",
"type": "module",
"displayName": "ERR_HTTP2_CONNECT_AUTHORITY"
},
{
"textRaw": "ERR_HTTP2_CONNECT_PATH",
"name": "err_http2_connect_path",
"desc": "<p>For HTTP/2 requests using the <code>CONNECT</code> method, the <code>:path</code> pseudo-header is\nforbidden.</p>\n<p><a id=\"ERR_HTTP2_CONNECT_SCHEME\"></a></p>",
"type": "module",
"displayName": "ERR_HTTP2_CONNECT_PATH"
},
{
"textRaw": "ERR_HTTP2_CONNECT_SCHEME",
"name": "err_http2_connect_scheme",
"desc": "<p>For HTTP/2 requests using the <code>CONNECT</code> method, the <code>:scheme</code> pseudo-header is\nforbidden.</p>\n<p><a id=\"ERR_HTTP2_ERROR\"></a></p>",
"type": "module",
"displayName": "ERR_HTTP2_CONNECT_SCHEME"
},
{
"textRaw": "ERR_HTTP2_ERROR",
"name": "err_http2_error",
"desc": "<p>A non-specific HTTP/2 error has occurred.</p>\n<p><a id=\"ERR_HTTP2_GOAWAY_SESSION\"></a></p>",
"type": "module",
"displayName": "ERR_HTTP2_ERROR"
},
{
"textRaw": "ERR_HTTP2_GOAWAY_SESSION",
"name": "err_http2_goaway_session",
"desc": "<p>New HTTP/2 Streams may not be opened after the <code>Http2Session</code> has received a\n<code>GOAWAY</code> frame from the connected peer.</p>\n<p><a id=\"ERR_HTTP2_HEADERS_AFTER_RESPOND\"></a></p>",
"type": "module",
"displayName": "ERR_HTTP2_GOAWAY_SESSION"
},
{
"textRaw": "ERR_HTTP2_HEADERS_AFTER_RESPOND",
"name": "err_http2_headers_after_respond",
"desc": "<p>An additional headers was specified after an HTTP/2 response was initiated.</p>\n<p><a id=\"ERR_HTTP2_HEADERS_SENT\"></a></p>",
"type": "module",
"displayName": "ERR_HTTP2_HEADERS_AFTER_RESPOND"
},
{
"textRaw": "ERR_HTTP2_HEADERS_SENT",
"name": "err_http2_headers_sent",
"desc": "<p>An attempt was made to send multiple response headers.</p>\n<p><a id=\"ERR_HTTP2_HEADER_SINGLE_VALUE\"></a></p>",
"type": "module",
"displayName": "ERR_HTTP2_HEADERS_SENT"
},
{
"textRaw": "ERR_HTTP2_HEADER_SINGLE_VALUE",
"name": "err_http2_header_single_value",
"desc": "<p>Multiple values were provided for an HTTP/2 header field that was required to\nhave only a single value.</p>\n<p><a id=\"ERR_HTTP2_INFO_STATUS_NOT_ALLOWED\"></a></p>",
"type": "module",
"displayName": "ERR_HTTP2_HEADER_SINGLE_VALUE"
},
{
"textRaw": "ERR_HTTP2_INFO_STATUS_NOT_ALLOWED",
"name": "err_http2_info_status_not_allowed",
"desc": "<p>Informational HTTP status codes (<code>1xx</code>) may not be set as the response status\ncode on HTTP/2 responses.</p>\n<p><a id=\"ERR_HTTP2_INVALID_CONNECTION_HEADERS\"></a></p>",
"type": "module",
"displayName": "ERR_HTTP2_INFO_STATUS_NOT_ALLOWED"
},
{
"textRaw": "ERR_HTTP2_INVALID_CONNECTION_HEADERS",
"name": "err_http2_invalid_connection_headers",
"desc": "<p>HTTP/1 connection specific headers are forbidden to be used in HTTP/2\nrequests and responses.</p>\n<p><a id=\"ERR_HTTP2_INVALID_HEADER_VALUE\"></a></p>",
"type": "module",
"displayName": "ERR_HTTP2_INVALID_CONNECTION_HEADERS"
},
{
"textRaw": "ERR_HTTP2_INVALID_HEADER_VALUE",
"name": "err_http2_invalid_header_value",
"desc": "<p>An invalid HTTP/2 header value was specified.</p>\n<p><a id=\"ERR_HTTP2_INVALID_INFO_STATUS\"></a></p>",
"type": "module",
"displayName": "ERR_HTTP2_INVALID_HEADER_VALUE"
},
{
"textRaw": "ERR_HTTP2_INVALID_INFO_STATUS",
"name": "err_http2_invalid_info_status",
"desc": "<p>An invalid HTTP informational status code has been specified. Informational\nstatus codes must be an integer between <code>100</code> and <code>199</code> (inclusive).</p>\n<p><a id=\"ERR_HTTP2_INVALID_ORIGIN\"></a></p>",
"type": "module",
"displayName": "ERR_HTTP2_INVALID_INFO_STATUS"
},
{
"textRaw": "ERR_HTTP2_INVALID_ORIGIN",
"name": "err_http2_invalid_origin",
"desc": "<p>HTTP/2 <code>ORIGIN</code> frames require a valid origin.</p>\n<p><a id=\"ERR_HTTP2_INVALID_PACKED_SETTINGS_LENGTH\"></a></p>",
"type": "module",
"displayName": "ERR_HTTP2_INVALID_ORIGIN"
},
{
"textRaw": "ERR_HTTP2_INVALID_PACKED_SETTINGS_LENGTH",
"name": "err_http2_invalid_packed_settings_length",
"desc": "<p>Input <code>Buffer</code> and <code>Uint8Array</code> instances passed to the\n<code>http2.getUnpackedSettings()</code> API must have a length that is a multiple of\nsix.</p>\n<p><a id=\"ERR_HTTP2_INVALID_PSEUDOHEADER\"></a></p>",
"type": "module",
"displayName": "ERR_HTTP2_INVALID_PACKED_SETTINGS_LENGTH"
},
{
"textRaw": "ERR_HTTP2_INVALID_PSEUDOHEADER",
"name": "err_http2_invalid_pseudoheader",
"desc": "<p>Only valid HTTP/2 pseudoheaders (<code>:status</code>, <code>:path</code>, <code>:authority</code>, <code>:scheme</code>,\nand <code>:method</code>) may be used.</p>\n<p><a id=\"ERR_HTTP2_INVALID_SESSION\"></a></p>",
"type": "module",
"displayName": "ERR_HTTP2_INVALID_PSEUDOHEADER"
},
{
"textRaw": "ERR_HTTP2_INVALID_SESSION",
"name": "err_http2_invalid_session",
"desc": "<p>An action was performed on an <code>Http2Session</code> object that had already been\ndestroyed.</p>\n<p><a id=\"ERR_HTTP2_INVALID_SETTING_VALUE\"></a></p>",
"type": "module",
"displayName": "ERR_HTTP2_INVALID_SESSION"
},
{
"textRaw": "ERR_HTTP2_INVALID_SETTING_VALUE",
"name": "err_http2_invalid_setting_value",
"desc": "<p>An invalid value has been specified for an HTTP/2 setting.</p>\n<p><a id=\"ERR_HTTP2_INVALID_STREAM\"></a></p>",
"type": "module",
"displayName": "ERR_HTTP2_INVALID_SETTING_VALUE"
},
{
"textRaw": "ERR_HTTP2_INVALID_STREAM",
"name": "err_http2_invalid_stream",
"desc": "<p>An operation was performed on a stream that had already been destroyed.</p>\n<p><a id=\"ERR_HTTP2_MAX_PENDING_SETTINGS_ACK\"></a></p>",
"type": "module",
"displayName": "ERR_HTTP2_INVALID_STREAM"
},
{
"textRaw": "ERR_HTTP2_MAX_PENDING_SETTINGS_ACK",
"name": "err_http2_max_pending_settings_ack",
"desc": "<p>Whenever an HTTP/2 <code>SETTINGS</code> frame is sent to a connected peer, the peer is\nrequired to send an acknowledgment that it has received and applied the new\n<code>SETTINGS</code>. By default, a maximum number of unacknowledged <code>SETTINGS</code> frames may\nbe sent at any given time. This error code is used when that limit has been\nreached.</p>\n<p><a id=\"ERR_HTTP2_NESTED_PUSH\"></a></p>",
"type": "module",
"displayName": "ERR_HTTP2_MAX_PENDING_SETTINGS_ACK"
},
{
"textRaw": "ERR_HTTP2_NESTED_PUSH",
"name": "err_http2_nested_push",
"desc": "<p>An attempt was made to initiate a new push stream from within a push stream.\nNested push streams are not permitted.</p>\n<p><a id=\"ERR_HTTP2_NO_SOCKET_MANIPULATION\"></a></p>",
"type": "module",
"displayName": "ERR_HTTP2_NESTED_PUSH"
},
{
"textRaw": "ERR_HTTP2_NO_SOCKET_MANIPULATION",
"name": "err_http2_no_socket_manipulation",
"desc": "<p>An attempt was made to directly manipulate (read, write, pause, resume, etc.) a\nsocket attached to an <code>Http2Session</code>.</p>\n<p><a id=\"ERR_HTTP2_ORIGIN_LENGTH\"></a></p>",
"type": "module",
"displayName": "ERR_HTTP2_NO_SOCKET_MANIPULATION"
},
{
"textRaw": "ERR_HTTP2_ORIGIN_LENGTH",
"name": "err_http2_origin_length",
"desc": "<p>HTTP/2 <code>ORIGIN</code> frames are limited to a length of 16382 bytes.</p>\n<p><a id=\"ERR_HTTP2_OUT_OF_STREAMS\"></a></p>",
"type": "module",
"displayName": "ERR_HTTP2_ORIGIN_LENGTH"
},
{
"textRaw": "ERR_HTTP2_OUT_OF_STREAMS",
"name": "err_http2_out_of_streams",
"desc": "<p>The number of streams created on a single HTTP/2 session reached the maximum\nlimit.</p>\n<p><a id=\"ERR_HTTP2_PAYLOAD_FORBIDDEN\"></a></p>",
"type": "module",
"displayName": "ERR_HTTP2_OUT_OF_STREAMS"
},
{
"textRaw": "ERR_HTTP2_PAYLOAD_FORBIDDEN",
"name": "err_http2_payload_forbidden",
"desc": "<p>A message payload was specified for an HTTP response code for which a payload is\nforbidden.</p>\n<p><a id=\"ERR_HTTP2_PING_CANCEL\"></a></p>",
"type": "module",
"displayName": "ERR_HTTP2_PAYLOAD_FORBIDDEN"
},
{
"textRaw": "ERR_HTTP2_PING_CANCEL",
"name": "err_http2_ping_cancel",
"desc": "<p>An HTTP/2 ping was canceled.</p>\n<p><a id=\"ERR_HTTP2_PING_LENGTH\"></a></p>",
"type": "module",
"displayName": "ERR_HTTP2_PING_CANCEL"
},
{
"textRaw": "ERR_HTTP2_PING_LENGTH",
"name": "err_http2_ping_length",
"desc": "<p>HTTP/2 ping payloads must be exactly 8 bytes in length.</p>\n<p><a id=\"ERR_HTTP2_PSEUDOHEADER_NOT_ALLOWED\"></a></p>",
"type": "module",
"displayName": "ERR_HTTP2_PING_LENGTH"
},
{
"textRaw": "ERR_HTTP2_PSEUDOHEADER_NOT_ALLOWED",
"name": "err_http2_pseudoheader_not_allowed",
"desc": "<p>An HTTP/2 pseudo-header has been used inappropriately. Pseudo-headers are header\nkey names that begin with the <code>:</code> prefix.</p>\n<p><a id=\"ERR_HTTP2_PUSH_DISABLED\"></a></p>",
"type": "module",
"displayName": "ERR_HTTP2_PSEUDOHEADER_NOT_ALLOWED"
},
{
"textRaw": "ERR_HTTP2_PUSH_DISABLED",
"name": "err_http2_push_disabled",
"desc": "<p>An attempt was made to create a push stream, which had been disabled by the\nclient.</p>\n<p><a id=\"ERR_HTTP2_SEND_FILE\"></a></p>",
"type": "module",
"displayName": "ERR_HTTP2_PUSH_DISABLED"
},
{
"textRaw": "ERR_HTTP2_SEND_FILE",
"name": "err_http2_send_file",
"desc": "<p>An attempt was made to use the <code>Http2Stream.prototype.responseWithFile()</code> API to\nsend a directory.</p>\n<p><a id=\"ERR_HTTP2_SEND_FILE_NOSEEK\"></a></p>",
"type": "module",
"displayName": "ERR_HTTP2_SEND_FILE"
},
{
"textRaw": "ERR_HTTP2_SEND_FILE_NOSEEK",
"name": "err_http2_send_file_noseek",
"desc": "<p>An attempt was made to use the <code>Http2Stream.prototype.responseWithFile()</code> API to\nsend something other than a regular file, but <code>offset</code> or <code>length</code> options were\nprovided.</p>\n<p><a id=\"ERR_HTTP2_SESSION_ERROR\"></a></p>",
"type": "module",
"displayName": "ERR_HTTP2_SEND_FILE_NOSEEK"
},
{
"textRaw": "ERR_HTTP2_SESSION_ERROR",
"name": "err_http2_session_error",
"desc": "<p>The <code>Http2Session</code> closed with a non-zero error code.</p>\n<p><a id=\"ERR_HTTP2_SETTINGS_CANCEL\"></a></p>",
"type": "module",
"displayName": "ERR_HTTP2_SESSION_ERROR"
},
{
"textRaw": "ERR_HTTP2_SETTINGS_CANCEL",
"name": "err_http2_settings_cancel",
"desc": "<p>The <code>Http2Session</code> settings canceled.</p>\n<p><a id=\"ERR_HTTP2_SOCKET_BOUND\"></a></p>",
"type": "module",
"displayName": "ERR_HTTP2_SETTINGS_CANCEL"
},
{
"textRaw": "ERR_HTTP2_SOCKET_BOUND",
"name": "err_http2_socket_bound",
"desc": "<p>An attempt was made to connect a <code>Http2Session</code> object to a <code>net.Socket</code> or\n<code>tls.TLSSocket</code> that had already been bound to another <code>Http2Session</code> object.</p>\n<p><a id=\"ERR_HTTP2_SOCKET_UNBOUND\"></a></p>",
"type": "module",
"displayName": "ERR_HTTP2_SOCKET_BOUND"
},
{
"textRaw": "ERR_HTTP2_SOCKET_UNBOUND",
"name": "err_http2_socket_unbound",
"desc": "<p>An attempt was made to use the <code>socket</code> property of an <code>Http2Session</code> that\nhas already been closed.</p>\n<p><a id=\"ERR_HTTP2_STATUS_101\"></a></p>",
"type": "module",
"displayName": "ERR_HTTP2_SOCKET_UNBOUND"
},
{
"textRaw": "ERR_HTTP2_STATUS_101",
"name": "err_http2_status_101",
"desc": "<p>Use of the <code>101</code> Informational status code is forbidden in HTTP/2.</p>\n<p><a id=\"ERR_HTTP2_STATUS_INVALID\"></a></p>",
"type": "module",
"displayName": "ERR_HTTP2_STATUS_101"
},
{
"textRaw": "ERR_HTTP2_STATUS_INVALID",
"name": "err_http2_status_invalid",
"desc": "<p>An invalid HTTP status code has been specified. Status codes must be an integer\nbetween <code>100</code> and <code>599</code> (inclusive).</p>\n<p><a id=\"ERR_HTTP2_STREAM_CANCEL\"></a></p>",
"type": "module",
"displayName": "ERR_HTTP2_STATUS_INVALID"
},
{
"textRaw": "ERR_HTTP2_STREAM_CANCEL",
"name": "err_http2_stream_cancel",
"desc": "<p>An <code>Http2Stream</code> was destroyed before any data was transmitted to the connected\npeer.</p>\n<p><a id=\"ERR_HTTP2_STREAM_ERROR\"></a></p>",
"type": "module",
"displayName": "ERR_HTTP2_STREAM_CANCEL"
},
{
"textRaw": "ERR_HTTP2_STREAM_ERROR",
"name": "err_http2_stream_error",
"desc": "<p>A non-zero error code was been specified in an <code>RST_STREAM</code> frame.</p>\n<p><a id=\"ERR_HTTP2_STREAM_SELF_DEPENDENCY\"></a></p>",
"type": "module",
"displayName": "ERR_HTTP2_STREAM_ERROR"
},
{
"textRaw": "ERR_HTTP2_STREAM_SELF_DEPENDENCY",
"name": "err_http2_stream_self_dependency",
"desc": "<p>When setting the priority for an HTTP/2 stream, the stream may be marked as\na dependency for a parent stream. This error code is used when an attempt is\nmade to mark a stream and dependent of itself.</p>\n<p><a id=\"ERR_HTTP2_TRAILERS_ALREADY_SENT\"></a></p>",
"type": "module",
"displayName": "ERR_HTTP2_STREAM_SELF_DEPENDENCY"
},
{
"textRaw": "ERR_HTTP2_TRAILERS_ALREADY_SENT",
"name": "err_http2_trailers_already_sent",
"desc": "<p>Trailing headers have already been sent on the <code>Http2Stream</code>.</p>\n<p><a id=\"ERR_HTTP2_TRAILERS_NOT_READY\"></a></p>",
"type": "module",
"displayName": "ERR_HTTP2_TRAILERS_ALREADY_SENT"
},
{
"textRaw": "ERR_HTTP2_TRAILERS_NOT_READY",
"name": "err_http2_trailers_not_ready",
"desc": "<p>The <code>http2stream.sendTrailers()</code> method cannot be called until after the\n<code>'wantTrailers'</code> event is emitted on an <code>Http2Stream</code> object. The\n<code>'wantTrailers'</code> event will only be emitted if the <code>waitForTrailers</code> option\nis set for the <code>Http2Stream</code>.</p>\n<p><a id=\"ERR_HTTP2_UNSUPPORTED_PROTOCOL\"></a></p>",
"type": "module",
"displayName": "ERR_HTTP2_TRAILERS_NOT_READY"
},
{
"textRaw": "ERR_HTTP2_UNSUPPORTED_PROTOCOL",
"name": "err_http2_unsupported_protocol",
"desc": "<p><code>http2.connect()</code> was passed a URL that uses any protocol other than <code>http:</code> or\n<code>https:</code>.</p>\n<p><a id=\"ERR_INSPECTOR_ALREADY_CONNECTED\"></a></p>",
"type": "module",
"displayName": "ERR_HTTP2_UNSUPPORTED_PROTOCOL"
},
{
"textRaw": "ERR_INSPECTOR_ALREADY_CONNECTED",
"name": "err_inspector_already_connected",
"desc": "<p>While using the <code>inspector</code> module, an attempt was made to connect when the\ninspector was already connected.</p>\n<p><a id=\"ERR_INSPECTOR_CLOSED\"></a></p>",
"type": "module",
"displayName": "ERR_INSPECTOR_ALREADY_CONNECTED"
},
{
"textRaw": "ERR_INSPECTOR_CLOSED",
"name": "err_inspector_closed",
"desc": "<p>While using the <code>inspector</code> module, an attempt was made to use the inspector\nafter the session had already closed.</p>\n<p><a id=\"ERR_INSPECTOR_NOT_AVAILABLE\"></a></p>",
"type": "module",
"displayName": "ERR_INSPECTOR_CLOSED"
},
{
"textRaw": "ERR_INSPECTOR_NOT_AVAILABLE",
"name": "err_inspector_not_available",
"desc": "<p>The <code>inspector</code> module is not available for use.</p>\n<p><a id=\"ERR_INSPECTOR_NOT_CONNECTED\"></a></p>",
"type": "module",
"displayName": "ERR_INSPECTOR_NOT_AVAILABLE"
},
{
"textRaw": "ERR_INSPECTOR_NOT_CONNECTED",
"name": "err_inspector_not_connected",
"desc": "<p>While using the <code>inspector</code> module, an attempt was made to use the inspector\nbefore it was connected.</p>\n<p><a id=\"ERR_INVALID_ADDRESS_FAMILY\"></a></p>",
"type": "module",
"displayName": "ERR_INSPECTOR_NOT_CONNECTED"
},
{
"textRaw": "ERR_INVALID_ADDRESS_FAMILY",
"name": "err_invalid_address_family",
"desc": "<p>The provided address family is not understood by the Node.js API.</p>\n<p><a id=\"ERR_INVALID_ARG_TYPE\"></a></p>",
"type": "module",
"displayName": "ERR_INVALID_ADDRESS_FAMILY"
},
{
"textRaw": "ERR_INVALID_ARG_TYPE",
"name": "err_invalid_arg_type",
"desc": "<p>An argument of the wrong type was passed to a Node.js API.</p>\n<p><a id=\"ERR_INVALID_ARG_VALUE\"></a></p>",
"type": "module",
"displayName": "ERR_INVALID_ARG_TYPE"
},
{
"textRaw": "ERR_INVALID_ARG_VALUE",
"name": "err_invalid_arg_value",
"desc": "<p>An invalid or unsupported value was passed for a given argument.</p>\n<p><a id=\"ERR_INVALID_ASYNC_ID\"></a></p>",
"type": "module",
"displayName": "ERR_INVALID_ARG_VALUE"
},
{
"textRaw": "ERR_INVALID_ASYNC_ID",
"name": "err_invalid_async_id",
"desc": "<p>An invalid <code>asyncId</code> or <code>triggerAsyncId</code> was passed using <code>AsyncHooks</code>. An id\nless than -1 should never happen.</p>\n<p><a id=\"ERR_INVALID_BUFFER_SIZE\"></a></p>",
"type": "module",
"displayName": "ERR_INVALID_ASYNC_ID"
},
{
"textRaw": "ERR_INVALID_BUFFER_SIZE",
"name": "err_invalid_buffer_size",
"desc": "<p>A swap was performed on a <code>Buffer</code> but its size was not compatible with the\noperation.</p>\n<p><a id=\"ERR_INVALID_CALLBACK\"></a></p>",
"type": "module",
"displayName": "ERR_INVALID_BUFFER_SIZE"
},
{
"textRaw": "ERR_INVALID_CALLBACK",
"name": "err_invalid_callback",
"desc": "<p>A callback function was required but was not been provided to a Node.js API.</p>\n<p><a id=\"ERR_INVALID_CHAR\"></a></p>",
"type": "module",
"displayName": "ERR_INVALID_CALLBACK"
},
{
"textRaw": "ERR_INVALID_CHAR",
"name": "err_invalid_char",
"desc": "<p>Invalid characters were detected in headers.</p>\n<p><a id=\"ERR_INVALID_CURSOR_POS\"></a></p>",
"type": "module",
"displayName": "ERR_INVALID_CHAR"
},
{
"textRaw": "ERR_INVALID_CURSOR_POS",
"name": "err_invalid_cursor_pos",
"desc": "<p>A cursor on a given stream cannot be moved to a specified row without a\nspecified column.</p>\n<p><a id=\"ERR_INVALID_FD\"></a></p>",
"type": "module",
"displayName": "ERR_INVALID_CURSOR_POS"
},
{
"textRaw": "ERR_INVALID_FD",
"name": "err_invalid_fd",
"desc": "<p>A file descriptor ('fd') was not valid (e.g. it was a negative value).</p>\n<p><a id=\"ERR_INVALID_FD_TYPE\"></a></p>",
"type": "module",
"displayName": "ERR_INVALID_FD"
},
{
"textRaw": "ERR_INVALID_FD_TYPE",
"name": "err_invalid_fd_type",
"desc": "<p>A file descriptor ('fd') type was not valid.</p>\n<p><a id=\"ERR_INVALID_FILE_URL_HOST\"></a></p>",
"type": "module",
"displayName": "ERR_INVALID_FD_TYPE"
},
{
"textRaw": "ERR_INVALID_FILE_URL_HOST",
"name": "err_invalid_file_url_host",
"desc": "<p>A Node.js API that consumes <code>file:</code> URLs (such as certain functions in the\n<a href=\"fs.html\"><code>fs</code></a> module) encountered a file URL with an incompatible host. This\nsituation can only occur on Unix-like systems where only <code>localhost</code> or an empty\nhost is supported.</p>\n<p><a id=\"ERR_INVALID_FILE_URL_PATH\"></a></p>",
"type": "module",
"displayName": "ERR_INVALID_FILE_URL_HOST"
},
{
"textRaw": "ERR_INVALID_FILE_URL_PATH",
"name": "err_invalid_file_url_path",
"desc": "<p>A Node.js API that consumes <code>file:</code> URLs (such as certain functions in the\n<a href=\"fs.html\"><code>fs</code></a> module) encountered a file URL with an incompatible path. The exact\nsemantics for determining whether a path can be used is platform-dependent.</p>\n<p><a id=\"ERR_INVALID_HANDLE_TYPE\"></a></p>",
"type": "module",
"displayName": "ERR_INVALID_FILE_URL_PATH"
},
{
"textRaw": "ERR_INVALID_HANDLE_TYPE",
"name": "err_invalid_handle_type",
"desc": "<p>An attempt was made to send an unsupported \"handle\" over an IPC communication\nchannel to a child process. See <a href=\"child_process.html#child_process_subprocess_send_message_sendhandle_options_callback\"><code>subprocess.send()</code></a> and <a href=\"process.html#process_process_send_message_sendhandle_options_callback\"><code>process.send()</code></a> for\nmore information.</p>\n<p><a id=\"ERR_INVALID_HTTP_TOKEN\"></a></p>",
"type": "module",
"displayName": "ERR_INVALID_HANDLE_TYPE"
},
{
"textRaw": "ERR_INVALID_HTTP_TOKEN",
"name": "err_invalid_http_token",
"desc": "<p>An invalid HTTP token was supplied.</p>\n<p><a id=\"ERR_INVALID_IP_ADDRESS\"></a></p>",
"type": "module",
"displayName": "ERR_INVALID_HTTP_TOKEN"
},
{
"textRaw": "ERR_INVALID_IP_ADDRESS",
"name": "err_invalid_ip_address",
"desc": "<p>An IP address is not valid.</p>\n<p><a id=\"ERR_INVALID_OPT_VALUE\"></a></p>",
"type": "module",
"displayName": "ERR_INVALID_IP_ADDRESS"
},
{
"textRaw": "ERR_INVALID_OPT_VALUE",
"name": "err_invalid_opt_value",
"desc": "<p>An invalid or unexpected value was passed in an options object.</p>\n<p><a id=\"ERR_INVALID_OPT_VALUE_ENCODING\"></a></p>",
"type": "module",
"displayName": "ERR_INVALID_OPT_VALUE"
},
{
"textRaw": "ERR_INVALID_OPT_VALUE_ENCODING",
"name": "err_invalid_opt_value_encoding",
"desc": "<p>An invalid or unknown file encoding was passed.</p>\n<p><a id=\"ERR_INVALID_PERFORMANCE_MARK\"></a></p>",
"type": "module",
"displayName": "ERR_INVALID_OPT_VALUE_ENCODING"
},
{
"textRaw": "ERR_INVALID_PERFORMANCE_MARK",
"name": "err_invalid_performance_mark",
"desc": "<p>While using the Performance Timing API (<code>perf_hooks</code>), a performance mark is\ninvalid.</p>\n<p><a id=\"ERR_INVALID_PROTOCOL\"></a></p>",
"type": "module",