S - the script classpublic class GroovyScriptException<S> extends AbstractScriptException<S>
callerThowable, file, filename, lineNumber, message, originFile, script, stackTraceCOMPILATION_EXCEPTION, RUNTIME_EXCEPTION| Constructor and Description | 
|---|
| GroovyScriptException(ScriptWrapper<S> script,
                     short exceptionType,
                     java.lang.Throwable throwable,
                     java.lang.String message,
                     int lineNumber)Constructor. | 
| Modifier and Type | Method and Description | 
|---|---|
| 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, getLineNumber, getMessage, getScript, getSource, getStackTrace, getThrowable, setCallerThrowable, setFile, setFileName, setScriptpublic GroovyScriptException(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()AbstractScriptException.getLineNumber()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