public class GroovyScriptException extends AbstractScriptException
| Constructor and Description |
|---|
GroovyScriptException(java.lang.String message,
java.lang.String scriptSource,
int lineOffset,
int errorLine,
java.lang.Throwable cause) |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.RuntimeException |
wrap(java.lang.Exception e,
java.lang.String source,
groovy.lang.Script es,
int lineOffset,
java.lang.String errorTip)
Tries to wrap the given exception with one which cites sourcecode.
|
static java.lang.RuntimeException |
wrap(java.lang.Exception e,
java.lang.String source,
java.lang.String name,
int lineOffset,
java.lang.String errorTip)
Tries to wrap the given exception with one which cites sourcecode.
|
getHTMLMessage, getMessage, getMessage, getMessage, getMessage, getMessage, printStackTrace, printStackTrace, toStringcreateFromStackTraceString, dumpJVMStack, dumpJVMStack, dumpStack, dumpStack, dumpStack, filterAndDumpStackTrace, filterStackTrace, filterStackTrace, getAllCauses, getCause, getCauseMethod, getCauseOfClass, getDeepestCauseOfClass, getErrortext, getErrortext, getRootCause, getStackTraceAsString, getStackTraceAsString, getStackTraceAsString, getStackTraceAsString, getStackTraceAsString, getStackTraceAsString, getStackTraceElement, getStackTraceElement, hasCauseOfClass, isKnownWrapperException, ofStackTraceString, printStackTrace, printStackTrace, printStackTrace, printStackTrace, printStackTrace, printStackTrace, printStackTrace, printStackTrace, printStackTrace, printStackTrace, printStackTrace, printStackTrace, printStackTrace, printStackTrace, printStackTrace, printStackTrace, printStackTraceAsCauseaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, setStackTraceequals, getClass, hashCode, notify, notifyAll, wait, wait, waitgetCauseOfClass, getDeepestCauseOfClass, getRootCause, getThisAsThrowable, hasCauseOfClass, printStackTracepublic GroovyScriptException(java.lang.String message,
java.lang.String scriptSource,
int lineOffset,
int errorLine,
java.lang.Throwable cause)
public static java.lang.RuntimeException wrap(java.lang.Exception e,
java.lang.String source,
groovy.lang.Script es,
int lineOffset,
java.lang.String errorTip)
e - the exception which might need to be wrappedsource - the source code of the script which threw the exceptiones - the script object (used to find information in the exception stacktrace)lineOffset - a possible offset by which the info about the error line of the script source might need to be modifiederrorTip - will be used as a prefix to the message of a possibly created GroovyScriptException wrapperpublic static java.lang.RuntimeException wrap(java.lang.Exception e,
java.lang.String source,
java.lang.String name,
int lineOffset,
java.lang.String errorTip)
e - the exception which might need to be wrappedsource - the source code of the script which threw the exceptionname - the classname of the script object (used to find information in the exception stacktrace)lineOffset - a possible offset by which the info about the error line of the script source might need to be modifiederrorTip - will be used as a prefix to the message of a possibly created GroovyScriptException wrapperCopyright © 2000-2026 OAshi S.à r.l. All Rights Reserved.