Package org.eclipse.ease
Class ScriptExecutionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.util.concurrent.ExecutionException
org.eclipse.ease.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 Summary
Constructors Constructor Description ScriptExecutionException(String message)
ScriptExecutionException(String message, int columnNumber, String lineSource, String errorName, ScriptStackTrace scriptStackTrace, Throwable cause)
Instantiate wrapper exception.ScriptExecutionException(Throwable exception)
-
Method Summary
Modifier and Type Method Description String
getMessage()
void
printStackTrace(PrintStream s)
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ScriptExecutionException
-
ScriptExecutionException
-
ScriptExecutionException
public ScriptExecutionException(String message, int columnNumber, String lineSource, String errorName, ScriptStackTrace scriptStackTrace, Throwable cause)Instantiate wrapper exception.- Parameters:
message
- error messagecolumnNumber
- number of the column where the error happenedlineSource
- source code of the line where the error happenederrorName
- name/type of the error (exception, syntax error, etc)scriptStackTrace
- script stack tracecause
- root exception
-
-
Method Details
-
getMessage
- Overrides:
getMessage
in classThrowable
-
printStackTrace
- Overrides:
printStackTrace
in classThrowable
-