Class ScriptExecutionException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
BreakException

public class ScriptExecutionException
extends ExecutionException
A common class to be thrown if an error happens during script execution. The individual script engines should convert their internal exceptions into this one, so that we can display nicely formatted and useful error messages if errors happen during script parsing/running.
See Also:
Serialized Form
  • Constructor Details

    • ScriptExecutionException

      public ScriptExecutionException​(String message)
    • ScriptExecutionException

      public ScriptExecutionException​(Throwable exception)
    • ScriptExecutionException

      public ScriptExecutionException​(String message, int columnNumber, String lineSource, String errorName, ScriptStackTrace scriptStackTrace, Throwable cause)
      Instantiate wrapper exception.
      Parameters:
      message - error message
      columnNumber - number of the column where the error happened
      lineSource - source code of the line where the error happened
      errorName - name/type of the error (exception, syntax error, etc)
      scriptStackTrace - script stack trace
      cause - root exception
  • Method Details