public class ExceptionsUtils
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(java.lang.Exception 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.
|
public static java.lang.String getFileName(java.lang.StackTraceElement st)
st
- the StackTraceElementpublic static int getLineNumber(java.lang.StackTraceElement st)
st
- the StackTraceElementpublic static int getLineNumber(java.lang.Exception e)
e
- the Exceptionpublic static java.lang.String getFileName(java.lang.Exception e)
e
- the ExceptionCopyright © 2021, 2022 Herve Girod. All Rights Reserved. Documentation and source under the BSD 3-Clause licence