From 2fb34b613206e6d5530fc48ba93d25be888bb9be Mon Sep 17 00:00:00 2001 From: yorkie Date: Wed, 4 Nov 2015 16:17:21 +0800 Subject: [PATCH] doc: fix the exception description A value shouldn't be described as doing inherit from some class, more strictly, the value is an instance of the class `Error`. PR-URL: https://github.com/nodejs/node/pull/3658 Reviewed-By: Evan Lucas Reviewed-By: Stephan Belanger Reviewed-By: Colin Ihrig Reviewed-By: Rich Trott --- doc/api/errors.markdown | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/doc/api/errors.markdown b/doc/api/errors.markdown index ccadbc484053d3..d2c09f2e6b7788 100644 --- a/doc/api/errors.markdown +++ b/doc/api/errors.markdown @@ -357,9 +357,10 @@ of argument validation. -A JavaScript "exception" is a value that is thrown as a result of an invalid operation or -as the target of a `throw` statement. While it is not required that these values inherit from -`Error`, all exceptions thrown by Node.js or the JavaScript runtime *will* be instances of Error. +A JavaScript exception is a value that is thrown as a result of an invalid operation or +as the target of a `throw` statement. While it is not required that these values are instances of +`Error` or classes which inherit from `Error`, all exceptions thrown by Node.js or the JavaScript +runtime *will* be instances of Error. Some exceptions are *unrecoverable* at the JavaScript layer. These exceptions will always bring down the process. These are usually failed `assert()` checks or `abort()` calls in the C++ layer.