Class EvalError

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ParseException, TargetError

public class EvalError extends Exception
EvalError indicates that we cannot continue evaluating the script or the script has thrown an exception. EvalError may be thrown for a script syntax error, an evaluation error such as referring to an undefined variable, an internal error.

See Also:
  • Constructor Details

  • Method Details

    • getMessage

      public String getMessage()
      Print the error with line number and stack trace.
      Overrides:
      getMessage in class Throwable
    • reThrow

      public void reThrow(String msg) throws EvalError
      Re-throw the error, prepending the specified message.
      Throws:
      EvalError
    • getErrorText

      public String getErrorText()
    • getErrorLineNumber

      public int getErrorLineNumber()
    • getErrorSourceFile

      public String getErrorSourceFile()
    • getScriptStackTrace

      public String getScriptStackTrace()
    • getRawMessage

      public String getRawMessage()