Results 1 - 20 of 33

Error

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

Error.prototype.columnNumber

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

Error.prototype.fileName

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

Error.prototype.message

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

Error.prototype.name

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

Error.prototype

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

Error.prototype.toSource()

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

Error.prototype.toString()

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

EvalError

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

EvalError.prototype

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

InternalError

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

InternalError.prototype

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

RangeError

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

DOMException

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

Error.prototype.lineNumber

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

Error.prototype.stack

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

RangeError.prototype

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

ReferenceError

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