S
- the script interfacepublic interface ScriptException<S>
Modifier and Type | Field and Description |
---|---|
static short |
COMPILATION_EXCEPTION
Compilation exceptions.
|
static short |
RUNTIME_EXCEPTION
Runtime exceptions.
|
Modifier and Type | Method and Description |
---|---|
short |
getExceptionType()
Return the exception type.
|
java.lang.String |
getFilename()
Return the script filename.
|
int |
getLineNumber()
Return the exception line number.
|
int |
getLineNumber(int lineNumber)
Return the effective line number of a line detected in the script runtime.
|
java.lang.String |
getMessage()
Return the exception message.
|
ScriptWrapper<S> |
getScript()
Return the script wrapper.
|
ScriptSource |
getSource()
Return the script source.
|
java.util.List<java.lang.StackTraceElement> |
getStackTrace(boolean filterScriptExceptions)
Return the StackTrace.
|
java.lang.Throwable |
getThrowable()
Return the wrapped Java exception.
|
void |
setScript(ScriptWrapper<S> script)
Set the script wrapper.
|
static final short COMPILATION_EXCEPTION
static final short RUNTIME_EXCEPTION
short getExceptionType()
RUNTIME_EXCEPTION
or COMPILATION_EXCEPTION
.void setScript(ScriptWrapper<S> script)
script
- the script wrapperScriptWrapper<S> getScript()
ScriptSource getSource()
java.lang.String getFilename()
int getLineNumber(int lineNumber)
lineNumber
- the line numberint getLineNumber()
java.lang.String getMessage()
java.lang.Throwable getThrowable()
java.util.List<java.lang.StackTraceElement> getStackTrace(boolean filterScriptExceptions)
filterScriptExceptions
- filter the script exceptions, if true only those exceptions will be added in
the StackTraceCopyright © 2019-2024 Herve Girod. All Rights Reserved. Documentation and source under the BSD licence