Results 1 - 20 of 33


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.
Error JavaScript Reference


The columnNumber property contains the column number in the line of the file that raised this error.
Error JavaScript Property Prototype


The fileName property contains the path to the file that raised this error.
Error JavaScript Property Prototype


The message property is a human-readable description of the error.
Error JavaScript Property Prototype

The name property represents a name for the type of error. The initial value is "Error".
Error JavaScript Property Prototype


The Error.prototype property represents the prototype for the Error constructor.
Error JavaScript Property


The toSource() method returns code that could eval to the same error.
Error JavaScript Method Prototype


The toString() method returns a string representing the specified Error object.
Error JavaScript Method Prototype


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.
Error EvalError JavaScript Reference


The EvalError.prototype property represents the prototype of the EvalError constructor.
Error EvalError JavaScript Property


The InternalError object indicates an error that occurred internally in the JavaScript engine. For example: "InternalError: too much recursion".
Error InternalError JavaScript


The InternalError.prototype property represents the prototype of the InternalError constructor.
Error InternalError JavaScript Property


The RangeError object indicates an error when a value is not in the set or range of allowed values.
Error JavaScript Object RangeError


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.
API DOM DOMException Error Error code Exception Reference


The lineNumber property contains the line number in the file that raised this error.
Error JavaScript Property Prototype Reference


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.
Error JavaScript Property Prototype Reference


The RangeError.prototype property represents the prototype the RangeError constructor.
Error JavaScript Property Prototype RangeError


The ReferenceError object represents an error when a non-existent variable is referenced.
Error JavaScript Object Reference ReferenceError