Skip to content

Commit 5bb6e5c

Browse files
ChALkeRtargos
authored andcommitted
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 #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 #21470, which includes some tests for error codes usage and documentation and enforces a stricter format. PR-URL: #21484 Refs: #21470 Refs: #21440 Refs: #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 c324b85 commit 5bb6e5c

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

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

1657+
<a id="ERR_UNKNOWN_BUILTIN_MODULE"></a>
1658+
### ERR_UNKNOWN_BUILTIN_MODULE
1659+
1660+
Used to identify a specific kind of internal Node.js error that should not
1661+
typically be triggered by user code. Instances of this error point to an
1662+
internal bug within the Node.js binary itself.
1663+
16521664
<a id="ERR_UNKNOWN_ENCODING"></a>
16531665
### ERR_UNKNOWN_ENCODING
16541666

0 commit comments

Comments
 (0)