The base object for Errors reported by the script interpreter. This object can also be used in script to create user-generated errors.
A string describing the error.
The name of the error. By default, it is “Error”.
The name of the script file the error occurred in, if available.
The line number that the error occurred on.
An array of stack trace objects. Each object in the array has the following properties:
functionName
- The name of the function, if available.filename
- The name of the file, if available.lineNumber
- The line number, if available.