S - the script classpublic class RubyScriptException<S> extends AbstractScriptException<S>
callerThowable, file, filename, lineNumber, message, originFile, script, stackTraceCOMPILATION_EXCEPTION, RUNTIME_EXCEPTION| Constructor and Description |
|---|
RubyScriptException(ScriptWrapper<S> script,
short exceptionType,
java.lang.Throwable throwable,
java.lang.String message,
int lineNumber)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getLineNumber()
Return the exception line number.
|
boolean |
isScriptException(java.lang.StackTraceElement st)
Return true if a StackTraceElement is a script exception.
|
protected void |
populateStackTrace(boolean filterScriptExceptions)
Populate the StackTrace.
|
void |
setupExceptionOrigin()
Setup the exception origin.
|
addToStrackTrace, createExceptionStack, getCallerThrowable, getExceptionFile, getExceptionType, getFile, getFilename, getLineNumber, getMessage, getScript, getSource, getStackTrace, getThrowable, setCallerThrowable, setFile, setFileName, setScriptpublic RubyScriptException(ScriptWrapper<S> script, short exceptionType, java.lang.Throwable throwable, java.lang.String message, int lineNumber)
script - the ScriptWrapperexceptionType - the exeption type (can be ScriptException.COMPILATION_EXCEPTION or ScriptException.RUNTIME_EXCEPTION)throwable - the exceptionmessage - the exception messagelineNumber - the line numberpublic boolean isScriptException(java.lang.StackTraceElement st)
st - the StackTraceElementpublic void setupExceptionOrigin()
AbstractScriptException.getFile()AbstractScriptException.getFilename()getLineNumber()public int getLineNumber()
getLineNumber in interface ScriptException<S>getLineNumber in class AbstractScriptException<S>protected void populateStackTrace(boolean filterScriptExceptions)
populateStackTrace in class AbstractScriptException<S>filterScriptExceptions - filter the script exceptions, if true only those exceptions will be added in the StackTraceCopyright © 2019-2025 Herve Girod. All Rights Reserved. Documentation and source under the BSD licence