Skip to main content
Version: 3.13.0

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 without new. Both create a new EvalError instance.

Parameters

  • message optional
    • : Human-readable description of the error.
  • options optional
    • : An object that has the following properties:
      • cause optional
        • : 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.