@@ -180,7 +180,7 @@ cases. If [domains][] are enabled, or a handler has been registered with
180180
181181<!-- type=class-->
182182
183- A generic JavaScript ` Error ` object that does not denote any specific
183+ A generic JavaScript { Error} object that does not denote any specific
184184circumstance of why the error occurred. ` Error ` objects capture a "stack trace"
185185detailing the point in the code at which the ` Error ` was instantiated, and may
186186provide a text description of the error.
@@ -352,14 +352,18 @@ loop tick.
352352
353353## Class: AssertionError
354354
355- A subclass of ` Error ` that indicates the failure of an assertion. For details,
356- see [ ` Class: assert.AssertionError ` ] [ ] .
355+ * Extends: {errors.Error}
356+
357+ Indicates the failure of an assertion. For details, see
358+ [ ` Class: assert.AssertionError ` ] [ ] .
357359
358360## Class: RangeError
359361
360- A subclass of ` Error ` that indicates that a provided argument was not within the
361- set or range of acceptable values for a function; whether that is a numeric
362- range, or outside the set of options for a given function parameter.
362+ * Extends: {errors.Error}
363+
364+ Indicates that a provided argument was not within the set or range of
365+ acceptable values for a function; whether that is a numeric range, or
366+ outside the set of options for a given function parameter.
363367
364368``` js
365369require (' net' ).connect (- 1 );
@@ -371,9 +375,11 @@ of argument validation.
371375
372376## Class: ReferenceError
373377
374- A subclass of ` Error ` that indicates that an attempt is being made to access a
375- variable that is not defined. Such errors commonly indicate typos in code, or
376- an otherwise broken program.
378+ * Extends: {errors.Error}
379+
380+ Indicates that an attempt is being made to access a variable that is not
381+ defined. Such errors commonly indicate typos in code, or an otherwise broken
382+ program.
377383
378384While client code may generate and propagate these errors, in practice, only V8
379385will do so.
@@ -389,11 +395,12 @@ or its dependencies.
389395
390396## Class: SyntaxError
391397
392- A subclass of ` Error ` that indicates that a program is not valid JavaScript.
393- These errors may only be generated and propagated as a result of code
394- evaluation. Code evaluation may happen as a result of ` eval ` , ` Function ` ,
395- ` require ` , or [ vm] [ ] . These errors are almost always indicative of a broken
396- program.
398+ * Extends: {errors.Error}
399+
400+ Indicates that a program is not valid JavaScript. These errors may only be
401+ generated and propagated as a result of code evaluation. Code evaluation may
402+ happen as a result of ` eval ` , ` Function ` , ` require ` , or [ vm] [ ] . These errors
403+ are almost always indicative of a broken program.
397404
398405``` js
399406try {
@@ -408,6 +415,8 @@ they may only be caught by other contexts.
408415
409416## Class: SystemError
410417
418+ * Extends: {errors.Error}
419+
411420Node.js generates system errors when exceptions occur within its runtime
412421environment. These usually occur when an application violates an operating
413422system constraint. For example, a system error will occur if an application
@@ -550,9 +559,11 @@ program. For a comprehensive list, see the [`errno`(3) man page][].
550559
551560## Class: TypeError
552561
553- A subclass of ` Error ` that indicates that a provided argument is not an
554- allowable type. For example, passing a function to a parameter which expects a
555- string would be considered a ` TypeError ` .
562+ * Extends {errors.Error}
563+
564+ Indicates that a provided argument is not an allowable type. For example,
565+ passing a function to a parameter which expects a string would be considered
566+ a ` TypeError ` .
556567
557568``` js
558569require (' url' ).parse (() => { });
0 commit comments