The Error constructor creates an error object. Instances of Error objects are thrown when runtime errors occur. The Error object can also be used as a base object for user-defined exceptions. See below for standard built-in error types.
The columnNumber property contains the column number in the line of the file that raised this error.
The fileName property contains the path to the file that raised this error.
The message property is a human-readable description of the error.
The name property represents a name for the type of error. The initial value is "Error".
The Error.prototype property represents the prototype for the Error constructor.
The toSource() method returns code that could eval to the same error.
The toString() method returns a string representing the specified Error object.
The EvalError object indicates an error regarding the global eval() function. This exception is not thrown by JavaScript anymore, however the EvalError object remains for compatibility.
The EvalError.prototype property represents the prototype of the EvalError constructor.
The InternalError object indicates an error that occurred internally in the JavaScript engine. For example: "InternalError: too much recursion".
The InternalError.prototype property represents the prototype of the InternalError constructor.
The RangeError object indicates an error when a value is not in the set or range of allowed values.
The DOMException interface represents an abnormal event (called an exception) which occurs as a result of calling a method or accessing a property of a web API. This is basically how error conditions are described in web APIs.
The lineNumber property contains the line number in the file that raised this error.
The non-standard stack property of Error objects offer a trace of which functions were called, in what order, from which line and file, and with what arguments. The stack string proceeds from the most recent calls to earlier ones, leading back to the original global scope call.
The RangeError.prototype property represents the prototype the RangeError constructor.
The ReferenceError object represents an error when a non-existent variable is referenced.