public class RubyExceptionsUtils
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
getFileName(java.lang.Exception e,
java.lang.String scriptName)
Return the line number for which a Script Exception originates.
|
static java.lang.String |
getFileName(java.lang.StackTraceElement st,
java.lang.String scriptName)
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 int |
getLineNumber(java.lang.Throwable th)
Return the line number for which a Script Exception originates.
|
static java.lang.String |
getMessage(java.lang.Throwable e)
Return the message for an exception.
|
static boolean |
isRubyScriptException(java.lang.StackTraceElement st)
Return true if the StackTraceElement corresponds to a Ruby script exception.
|
public static java.lang.String getMessage(java.lang.Throwable e)
e - the exceptionpublic static boolean isRubyScriptException(java.lang.StackTraceElement st)
st - the StackTraceElementpublic static java.lang.String getFileName(java.lang.StackTraceElement st,
java.lang.String scriptName)
st - the StackTraceElementscriptName - the script namepublic static int getLineNumber(java.lang.StackTraceElement st)
st - the StackTraceElementpublic static int getLineNumber(java.lang.Throwable th)
th - the Throwablepublic static java.lang.String getFileName(java.lang.Exception e,
java.lang.String scriptName)
e - the ExceptionscriptName - the script nameCopyright © 2019-2025 Herve Girod. All Rights Reserved. Documentation and source under the BSD licence