summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorJames M Snell <jasnell@gmail.com>2017-02-10 10:18:19 -0800
committerJames M Snell <jasnell@gmail.com>2017-04-24 09:06:54 -0700
commit251e5ed8ee91747e31233fb2711f31be5d2e98a6 (patch)
tree79262a6a2648cafa6686989462356308a7919435 /doc
parent37699070cc3aea7c2a0b8b764c8314a301e977fa (diff)
downloadandroid-node-v8-251e5ed8ee91747e31233fb2711f31be5d2e98a6.tar.gz
android-node-v8-251e5ed8ee91747e31233fb2711f31be5d2e98a6.tar.bz2
android-node-v8-251e5ed8ee91747e31233fb2711f31be5d2e98a6.zip
errors: assign error code to bootstrap_node created error
This does not use the internal/errors.js module because the error in question may actually be *caused* by an attempt to load internal/errors.js. This error should only be encountered in the case of a bug within Node.js itself. PR-URL: https://github.com/nodejs/node/pull/11298 Ref: https://github.com/nodejs/node/issues/11273 Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Michaƫl Zasso <targos@protonmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
Diffstat (limited to 'doc')
-rw-r--r--doc/api/errors.md10
1 files changed, 10 insertions, 0 deletions
diff --git a/doc/api/errors.md b/doc/api/errors.md
index 7ee2963ae0..0d02fe5870 100644
--- a/doc/api/errors.md
+++ b/doc/api/errors.md
@@ -558,6 +558,7 @@ found [here][online].
encountered by [`http`][] or [`net`][] -- often a sign that a `socket.end()`
was not properly called.
+
<a id="nodejs-error-codes"></a>
## Node.js Error Codes
@@ -587,6 +588,14 @@ An error using the `'ERR_STDOUT_CLOSE'` code is thrown specifically when an
attempt is made to close the `process.stdout` stream. By design, Node.js does
not allow `stdout` or `stderr` Streams to be closed by user code.
+<a id="ERR_UNKNOWN_BUILTIN_MODULE"></a>
+### ERR_UNKNOWN_BUILTIN_MODULE
+
+The `'ERR_UNKNOWN_BUILTIN_MODULE'` error code is 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.
+
<a id="ERR_UNKNOWN_STDIN_TYPE"></a>
### ERR_UNKNOWN_STDIN_TYPE
@@ -605,6 +614,7 @@ an attempt is made to launch a Node.js process with an unknown `stdout` or
in user code, although it is not impossible. Occurrences of this error are most
likely an indication of a bug within Node.js itself.
+
[`fs.readdir`]: fs.html#fs_fs_readdir_path_options_callback
[`fs.readFileSync`]: fs.html#fs_fs_readfilesync_file_options
[`fs.unlink`]: fs.html#fs_fs_unlink_path_callback