Skip to content

Commit ae7c71e

Browse files
yorkieMyles Borins
authored and
Myles Borins
committed
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: #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]>
1 parent 88c17f8 commit ae7c71e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

doc/api/errors.markdown

+4-3
Original file line numberDiff line numberDiff line change
@@ -357,9 +357,10 @@ of argument validation.
357357

358358
<!--type=misc-->
359359

360-
A JavaScript "exception" is a value that is thrown as a result of an invalid operation or
361-
as the target of a `throw` statement. While it is not required that these values inherit from
362-
`Error`, all exceptions thrown by Node.js or the JavaScript runtime *will* be instances of Error.
360+
A JavaScript exception is a value that is thrown as a result of an invalid operation or
361+
as the target of a `throw` statement. While it is not required that these values are instances of
362+
`Error` or classes which inherit from `Error`, all exceptions thrown by Node.js or the JavaScript
363+
runtime *will* be instances of Error.
363364

364365
Some exceptions are *unrecoverable* at the JavaScript layer. These exceptions will always bring
365366
down the process. These are usually failed `assert()` checks or `abort()` calls in the C++ layer.

0 commit comments

Comments
 (0)