Skip to content

Errors

  • An error object is a built-in object that provides error information when an error occurs. It has two properties: name and message.

Error Types

Error typeDescription
AggregateErrorAn error indicating that multiple errors occurred.
EvalErrorAn error has occurred in the eval() function.
RangeErrorAn error has occurred with a number that is out of range.
ReferenceErrorAn error due to an illegal reference.
SyntaxErrorAn error due to a syntax error.
TypeErrorAn error due to a type error.
URIErrorAn error due to encodeURI().