Skip to content

Commit cc0edb9

Browse files
committed
errors: update all internal errors
This updates all internal errors to the new error type. While doing so it removes unused errors. A few errors currently seem to have the wrong type. To identify them later, comments were added next to the error type.
1 parent 690d6f5 commit cc0edb9

File tree

3 files changed

+209
-262
lines changed

3 files changed

+209
-262
lines changed

doc/api/errors.md

-55
Original file line numberDiff line numberDiff line change
@@ -793,12 +793,6 @@ An invalid symlink type was passed to the [`fs.symlink()`][] or
793793

794794
An attempt was made to add more headers after the headers had already been sent.
795795

796-
<a id="ERR_HTTP_INVALID_CHAR"></a>
797-
### ERR_HTTP_INVALID_CHAR
798-
799-
An invalid character was found in an HTTP response status message (reason
800-
phrase).
801-
802796
<a id="ERR_HTTP_INVALID_HEADER_VALUE"></a>
803797
### ERR_HTTP_INVALID_HEADER_VALUE
804798

@@ -815,11 +809,6 @@ Status code was outside the regular status code range (100-999).
815809
The `Trailer` header was set even though the transfer encoding does not support
816810
that.
817811

818-
<a id="ERR_HTTP2_ALREADY_SHUTDOWN"></a>
819-
### ERR_HTTP2_ALREADY_SHUTDOWN
820-
821-
Occurs with multiple attempts to shutdown an HTTP/2 session.
822-
823812
<a id="ERR_HTTP2_ALTSVC_INVALID_ORIGIN"></a>
824813
### ERR_HTTP2_ALTSVC_INVALID_ORIGIN
825814

@@ -848,22 +837,12 @@ forbidden.
848837
For HTTP/2 requests using the `CONNECT` method, the `:scheme` pseudo-header is
849838
forbidden.
850839

851-
<a id="ERR_HTTP2_FRAME_ERROR"></a>
852-
### ERR_HTTP2_FRAME_ERROR
853-
854-
A failure occurred sending an individual frame on the HTTP/2 session.
855-
856840
<a id="ERR_HTTP2_GOAWAY_SESSION"></a>
857841
### ERR_HTTP2_GOAWAY_SESSION
858842

859843
New HTTP/2 Streams may not be opened after the `Http2Session` has received a
860844
`GOAWAY` frame from the connected peer.
861845

862-
<a id="ERR_HTTP2_HEADER_REQUIRED"></a>
863-
### ERR_HTTP2_HEADER_REQUIRED
864-
865-
A required header was missing in an HTTP/2 message.
866-
867846
<a id="ERR_HTTP2_HEADER_SINGLE_VALUE"></a>
868847
### ERR_HTTP2_HEADER_SINGLE_VALUE
869848

@@ -875,22 +854,11 @@ have only a single value.
875854

876855
An additional headers was specified after an HTTP/2 response was initiated.
877856

878-
<a id="ERR_HTTP2_HEADERS_OBJECT"></a>
879-
### ERR_HTTP2_HEADERS_OBJECT
880-
881-
An HTTP/2 Headers Object was expected.
882-
883857
<a id="ERR_HTTP2_HEADERS_SENT"></a>
884858
### ERR_HTTP2_HEADERS_SENT
885859

886860
An attempt was made to send multiple response headers.
887861

888-
<a id="ERR_HTTP2_INFO_HEADERS_AFTER_RESPOND"></a>
889-
### ERR_HTTP2_INFO_HEADERS_AFTER_RESPOND
890-
891-
HTTP/2 Informational headers must only be sent *prior* to calling the
892-
`Http2Stream.prototype.respond()` method.
893-
894862
<a id="ERR_HTTP2_INFO_STATUS_NOT_ALLOWED"></a>
895863
### ERR_HTTP2_INFO_STATUS_NOT_ALLOWED
896864

@@ -1280,14 +1248,6 @@ strict compliance with the API specification (which in some cases may accept
12801248
`func(undefined)` and `func()` are treated identically, and the
12811249
[`ERR_INVALID_ARG_TYPE`][] error code may be used instead.
12821250

1283-
<a id="ERR_MISSING_DYNAMIC_INSTANTIATE_HOOK"></a>
1284-
### ERR_MISSING_DYNAMIC_INSTANTIATE_HOOK
1285-
1286-
> Stability: 1 - Experimental
1287-
1288-
An [ES6 module][] loader hook specified `format: 'dynamic` but did not provide a
1289-
`dynamicInstantiate` hook.
1290-
12911251
<a id="ERR_MISSING_MODULE"></a>
12921252
### ERR_MISSING_MODULE
12931253

@@ -1316,11 +1276,6 @@ would be possible by calling a callback more than once.
13161276

13171277
While using `N-API`, a constructor passed was not a function.
13181278

1319-
<a id="ERR_NAPI_CONS_PROTOTYPE_OBJECT"></a>
1320-
### ERR_NAPI_CONS_PROTOTYPE_OBJECT
1321-
1322-
While using `N-API`, `Constructor.prototype` was not an object.
1323-
13241279
<a id="ERR_NAPI_INVALID_DATAVIEW_ARGS"></a>
13251280
### ERR_NAPI_INVALID_DATAVIEW_ARGS
13261281

@@ -1363,11 +1318,6 @@ For example: `Buffer.write(string, encoding, offset[, length])`
13631318

13641319
A given value is out of the accepted range.
13651320

1366-
<a id="ERR_PARSE_HISTORY_DATA"></a>
1367-
### ERR_PARSE_HISTORY_DATA
1368-
1369-
The `REPL` module was unable parse data from the REPL history file.
1370-
13711321
<a id="ERR_REQUIRE_ESM"></a>
13721322
### ERR_REQUIRE_ESM
13731323

@@ -1524,11 +1474,6 @@ recommended to use 2048 bits or larger for stronger security.
15241474
A TLS/SSL handshake timed out. In this case, the server must also abort the
15251475
connection.
15261476

1527-
<a id="ERR_TLS_RENEGOTIATION_FAILED"></a>
1528-
### ERR_TLS_RENEGOTIATION_FAILED
1529-
1530-
A TLS renegotiation request has failed in a non-specific way.
1531-
15321477
<a id="ERR_TLS_REQUIRED_SERVER_NAME"></a>
15331478
### ERR_TLS_REQUIRED_SERVER_NAME
15341479

0 commit comments

Comments
 (0)