EvalError
The EvalError() constructor creates a new EvalError instance.
Syntax
new EvalError()
new EvalError(message)
new EvalError(message, options)
new EvalError(message, fileName)
new EvalError(message, fileName, lineNumber)
EvalError()
EvalError(message)
EvalError(message, options)
EvalError(message, fileName)
EvalError(message, fileName, lineNumber)
Note:
EvalError()can be called with or withoutnew. Both create a newEvalErrorinstance.
Parameters
- messageoptional- : Human-readable description of the error.
 
- optionsoptional- : An object that has the following properties:- causeoptional- : A property indicating the specific cause of the error. When catching and re-throwing an error with a more-specific or useful error message, this property can be used to pass the original error.
 
 
 
- : An object that has the following properties: