public final class ThrowableUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
getSourceCodePath(StackTraceElement stackTraceElement)
Retrieves the source code file name from an StrackTraceElement
|
static List<Source> |
getSources(int errorLine,
String sourcePath)
Retrieves the lines of code where an exception occurred
|
public static String getSourceCodePath(StackTraceElement stackTraceElement)
stackTraceElement - The StrackTraceElement to checkpublic static List<Source> getSources(int errorLine, String sourcePath) throws FileNotFoundException, IOException
errorLine - The line number of the exceptionsourcePath - The path to the source code fileFileNotFoundException - If the file is not foundIOException - If an IO exception occursCopyright © 2016. All rights reserved.