From cdb59854ee6c13712d17af729a42d5221d6af8f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A1=D0=BA=D0=BE=D0=B2=D0=BE=D1=80=D0=BE=D0=B4=D0=B0=20?= =?UTF-8?q?=D0=9D=D0=B8=D0=BA=D0=B8=D1=82=D0=B0=20=D0=90=D0=BD=D0=B4=D1=80?= =?UTF-8?q?=D0=B5=D0=B5=D0=B2=D0=B8=D1=87?= Date: Sat, 23 Jun 2018 12:40:55 +0300 Subject: [PATCH] doc: restore documentation for two error codes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ERR_HTTP2_ERROR and ERR_UNKNOWN_BUILTIN_MODULE error codes documentation seem to have been accidentally removed in commit 1cdb41f287c8e51a5963f5f8eb8d7c8b5809b99d (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: https://github.com/nodejs/node/pull/21484 Refs: https://github.com/nodejs/node/pull/21470 Refs: https://github.com/nodejs/node/issues/21440 Refs: https://github.com/nodejs/node/pull/15160 Reviewed-By: Vse Mozhet Byt Reviewed-By: Colin Ihrig Reviewed-By: James M Snell Reviewed-By: Trivikram Kamat Reviewed-By: Luigi Pinca Reviewed-By: Michaƫl Zasso --- doc/api/errors.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/doc/api/errors.md b/doc/api/errors.md index 0a7ea79a5f1ea2..0fbd383676a00f 100644 --- a/doc/api/errors.md +++ b/doc/api/errors.md @@ -869,6 +869,11 @@ forbidden. For HTTP/2 requests using the `CONNECT` method, the `:scheme` pseudo-header is forbidden. + +### ERR_HTTP2_ERROR + +A non-specific HTTP/2 error has occurred. + ### ERR_HTTP2_GOAWAY_SESSION @@ -1644,6 +1649,13 @@ A string that contained unescaped characters was received. An unhandled error occurred (for instance, when an `'error'` event is emitted by an [`EventEmitter`][] but an `'error'` handler is not registered). + +### ERR_UNKNOWN_BUILTIN_MODULE + +Used to identify a specific kind of internal Node.js error that should not +typically be triggered by user code. Instances of this error point to an +internal bug within the Node.js binary itself. + ### ERR_UNKNOWN_CREDENTIAL