Skip to content

Commit cdb5985

Browse files
committed
doc: restore documentation for two error codes
ERR_HTTP2_ERROR and ERR_UNKNOWN_BUILTIN_MODULE error codes documentation seem to have been accidentally removed in commit 1cdb41f (pull request nodejs#15160). This reverts that removal, restoring the documentation for those two error codes. Those error codes are used from lib/ folder. This is a part of the fixes hinted by nodejs#21470, which includes some tests for error codes usage and documentation and enforces a stricter format. PR-URL: nodejs#21484 Refs: nodejs#21470 Refs: nodejs#21440 Refs: nodejs#15160 Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com>
1 parent 5ab3db7 commit cdb5985

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

doc/api/errors.md

+12
Original file line numberDiff line numberDiff line change
@@ -869,6 +869,11 @@ forbidden.
869869
For HTTP/2 requests using the `CONNECT` method, the `:scheme` pseudo-header is
870870
forbidden.
871871

872+
<a id="ERR_HTTP2_ERROR"></a>
873+
### ERR_HTTP2_ERROR
874+
875+
A non-specific HTTP/2 error has occurred.
876+
872877
<a id="ERR_HTTP2_GOAWAY_SESSION"></a>
873878
### ERR_HTTP2_GOAWAY_SESSION
874879

@@ -1644,6 +1649,13 @@ A string that contained unescaped characters was received.
16441649
An unhandled error occurred (for instance, when an `'error'` event is emitted
16451650
by an [`EventEmitter`][] but an `'error'` handler is not registered).
16461651

1652+
<a id="ERR_UNKNOWN_BUILTIN_MODULE"></a>
1653+
### ERR_UNKNOWN_BUILTIN_MODULE
1654+
1655+
Used to identify a specific kind of internal Node.js error that should not
1656+
typically be triggered by user code. Instances of this error point to an
1657+
internal bug within the Node.js binary itself.
1658+
16471659
<a id="ERR_UNKNOWN_CREDENTIAL"></a>
16481660
### ERR_UNKNOWN_CREDENTIAL
16491661

0 commit comments

Comments
 (0)