public class GroovyExceptionsUtils
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getFileName(java.lang.Exception e)
Return the line number for which a Script Exception originates.
|
static java.lang.String |
getFileName(java.lang.StackTraceElement st)
Return the line number for which a Script Exception originates.
|
static int |
getLineNumber(ScriptWrapper<?> script,
java.lang.Throwable e)
Return the line number for which a Script Exception originates.
|
static int |
getLineNumber(java.lang.StackTraceElement st)
Return the line number for which a StackTraceElement originates.
|
static java.lang.String |
getMessage(java.lang.Throwable e)
Return the message for an exception.
|
static boolean |
isGroovyScriptException(java.lang.StackTraceElement st)
Return true if the StackTraceElement corresponds to a groovy exception.
|
public static java.lang.String getFileName(java.lang.StackTraceElement st)
st
- the StackTraceElementpublic static boolean isGroovyScriptException(java.lang.StackTraceElement st)
st
- the StackTraceElementpublic static int getLineNumber(java.lang.StackTraceElement st)
st
- the StackTraceElementpublic static java.lang.String getMessage(java.lang.Throwable e)
e
- the exceptionpublic static int getLineNumber(ScriptWrapper<?> script, java.lang.Throwable e)
script
- the ScriptWrappere
- the Exceptionpublic static java.lang.String getFileName(java.lang.Exception e)
e
- the ExceptionCopyright © 2019-2024 Herve Girod. All Rights Reserved. Documentation and source under the BSD licence