Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 06ac81e

Browse filesBrowse files
Trotttargos
authored andcommitted
doc: streamline errors.md introductory material
PR-URL: #21138 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
1 parent 73b8975 commit 06ac81e
Copy full SHA for 06ac81e

File tree

Expand file treeCollapse file tree

1 file changed

+6
-12
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+6
-12
lines changed
Open diff view settings
Collapse file

‎doc/api/errors.md‎

Copy file name to clipboardExpand all lines: doc/api/errors.md
+6-12Lines changed: 6 additions & 12 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,13 @@
66
Applications running in Node.js will generally experience four categories of
77
errors:
88

9-
- Standard JavaScript errors such as:
10-
- {EvalError} : thrown when a call to `eval()` fails.
11-
- {SyntaxError} : thrown in response to improper JavaScript language
12-
syntax.
13-
- {RangeError} : thrown when a value is not within an expected range
14-
- {ReferenceError} : thrown when using undefined variables
15-
- {TypeError} : thrown when passing arguments of the wrong type
16-
- {URIError} : thrown when a global URI handling function is misused.
9+
- Standard JavaScript errors such as {EvalError}, {SyntaxError}, {RangeError},
10+
{ReferenceError}, {TypeError}, and {URIError}.
1711
- System errors triggered by underlying operating system constraints such
18-
as attempting to open a file that does not exist, attempting to send data
19-
over a closed socket, etc;
20-
- And User-specified errors triggered by application code.
21-
- `AssertionError`s are a special class of error that can be triggered whenever
12+
as attempting to open a file that does not exist or attempting to send data
13+
over a closed socket.
14+
- User-specified errors triggered by application code.
15+
- `AssertionError`s are a special class of error that can be triggered when
2216
Node.js detects an exceptional logic violation that should never occur. These
2317
are raised typically by the `assert` module.
2418

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.