public class PythonExceptionsUtils
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.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 e)
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 |
isPythonScriptException(java.lang.StackTraceElement st)
Return true if the StackTraceElement corresponds to a Javascript exception.
|
public static java.lang.String getMessage(java.lang.Throwable e)
e
- the exceptionpublic static java.lang.String getFileName(java.lang.Exception e, java.lang.String scriptName)
e
- the ExceptionscriptName
- the script namepublic static java.lang.String getFileName(java.lang.StackTraceElement st, java.lang.String scriptName)
st
- the StackTraceElementscriptName
- the script namepublic static boolean isPythonScriptException(java.lang.StackTraceElement st)
st
- the StackTraceElementpublic static int getLineNumber(java.lang.StackTraceElement st)
st
- the StackTraceElementpublic static int getLineNumber(java.lang.Throwable e)
e
- 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