Skip to content

Commit

Permalink
doc: fix the exception description
Browse files Browse the repository at this point in the history
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: #3658
Reviewed-By: Evan Lucas <[email protected]>
Reviewed-By: Stephan Belanger <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
  • Loading branch information
yorkie authored and rvagg committed Dec 5, 2015
1 parent 098a311 commit aaeced9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions doc/api/errors.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -357,9 +357,10 @@ of argument validation.

<!--type=misc-->

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.
Expand Down

0 comments on commit aaeced9

Please sign in to comment.