Represents the prototype for the Error constructor.
Error instances and instances of non-generic errors inherit from
Error.prototype. As with all constructor functions, you can use the prototype of the constructor to add properties or methods to all instances created with that constructor.
- Specifies the function that created an instance's prototype.
- Error message.
- Error name.
This feature is non-standard and is not on a standards track. Do not use it on production sites facing the Web: it will not work for every user. There may also be large incompatibilities between implementations and the behavior may change in the future.
- Path to file that raised this error.
- Line number in file that raised this error.
- Column number in line that raised this error.
- Stack trace.
Returns a string containing the source of the specified
Errorobject; you can use this value to create a new object. Overrides the Object.toSource method.
- Returns a string representing the specified object. Overrides the Object.toString method.