public class Throwables extends Object
| Modifier and Type | Method and Description |
|---|---|
static List<Throwable> |
getCausalChain(Throwable throwable)
Returns the Throwable's cause chain as a list.
|
static ErrorItem |
toErrorItem(String logMessage,
String className,
String methodName,
int lineNumber)
Create an error item from a simple log message (without an explicit exception)
|
static ErrorItem |
toErrorItem(String logMessage,
Throwable t)
Converts a Throwable to an ErrorItem
|
static ErrorItem |
toErrorItem(Throwable t)
Converts a Throwable to an ErrorItem
|
public static List<Throwable> getCausalChain(Throwable throwable)
throwable - The Throwablepublic static ErrorItem toErrorItem(String logMessage, Throwable t)
logMessage - The log message (can be null)t - The Throwable to be convertedpublic static ErrorItem toErrorItem(Throwable t)
t - The Throwable to be convertedpublic static ErrorItem toErrorItem(String logMessage, String className, String methodName, int lineNumber)
logMessage - The log messageclassName - The class that logged the messagemethodName - The method that logged the messagelineNumber - The line number that logged the messageCopyright © 2019 Stackify, LLC. All rights reserved.