summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorJoyee Cheung <joyeec9h3@gmail.com>2018-04-02 10:36:17 +0800
committerJoyee Cheung <joyeec9h3@gmail.com>2018-04-07 17:15:03 +0800
commit289d152ce0222d3be32bf20ef7dc7d8d5e40f218 (patch)
treead0d3e90bf1dc247a95455e0b58d7693fc4966ee /doc
parent1f29963eacf587817a6d40da527d05d151668198 (diff)
downloadandroid-node-v8-289d152ce0222d3be32bf20ef7dc7d8d5e40f218.tar.gz
android-node-v8-289d152ce0222d3be32bf20ef7dc7d8d5e40f218.tar.bz2
android-node-v8-289d152ce0222d3be32bf20ef7dc7d8d5e40f218.zip
src: add error code helpers to src/node_errors.h
This commit adds node::ERR_*(isolate, message) helpers in the C++ land to assign error codes to existing C++ errors. The following errors are added: - ERR_MEMORY_ALLOCATION_FAILED - ERR_STRING_TOO_LARGE PR-URL: https://github.com/nodejs/node/pull/19739 Fixes: https://github.com/nodejs/node/issues/3175 Fixes: https://github.com/nodejs/node/issues/9489 Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net>
Diffstat (limited to 'doc')
-rw-r--r--doc/api/errors.md12
1 files changed, 12 insertions, 0 deletions
diff --git a/doc/api/errors.md b/doc/api/errors.md
index 936b1b0cd5..e96848b296 100644
--- a/doc/api/errors.md
+++ b/doc/api/errors.md
@@ -1242,6 +1242,12 @@ An attempt was made to open an IPC communication channel with a synchronously
forked Node.js process. See the documentation for the [`child_process`][] module
for more information.
+<a id="ERR_MEMORY_ALLOCATION_FAILED"></a>
+### ERR_MEMORY_ALLOCATION_FAILED
+
+An attempt was made to allocate memory (usually in the C++ layer) but it
+failed.
+
<a id="ERR_METHOD_NOT_IMPLEMENTED"></a>
### ERR_METHOD_NOT_IMPLEMENTED
@@ -1468,6 +1474,12 @@ additional details.
A stream method was called that cannot complete because the stream was
destroyed using `stream.destroy()`.
+<a id="ERR_STRING_TOO_LARGE"></a>
+### ERR_STRING_TOO_LARGE
+
+An attempt has been made to create a string larger than the maximum allowed
+size.
+
<a id="ERR_TLS_CERT_ALTNAME_INVALID"></a>
### ERR_TLS_CERT_ALTNAME_INVALID