We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c94f346 commit d3b0722Copy full SHA for d3b0722
doc/api/errors.md
@@ -358,6 +358,18 @@ loop tick.
358
System-level errors are generated as augmented `Error` instances, which are
359
detailed [here](#errors_system_errors).
360
361
+## Class: AssertionError
362
+
363
+A subclass of `Error` that indicates the failure of an assertion. Such errors
364
+commonly indicate inequality of actual and expected value.
365
366
+For example:
367
368
+```js
369
+assert.strictEqual(1, 2);
370
+// AssertionError [ERR_ASSERTION]: 1 === 2
371
+```
372
373
## Class: RangeError
374
375
A subclass of `Error` that indicates that a provided argument was not within the
0 commit comments