public class Throwables
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static java.util.List<java.lang.Throwable> |
getCausalChain(java.lang.Throwable throwable)
Returns the Throwable's cause chain as a list.
|
static ErrorItem |
toErrorItem(java.lang.String logMessage,
java.lang.String className,
java.lang.String methodName,
int lineNumber)
Create an error item from a simple log message (without an explicit exception)
|
static ErrorItem |
toErrorItem(java.lang.String logMessage,
java.lang.Throwable t)
Converts a Throwable to an ErrorItem
|
static ErrorItem |
toErrorItem(java.lang.Throwable t)
Converts a Throwable to an ErrorItem
|
public static java.util.List<java.lang.Throwable> getCausalChain(java.lang.Throwable throwable)
throwable - The Throwablepublic static ErrorItem toErrorItem(java.lang.String logMessage, java.lang.Throwable t)
logMessage - The log message (can be null)t - The Throwable to be convertedpublic static ErrorItem toErrorItem(java.lang.Throwable t)
t - The Throwable to be convertedpublic static ErrorItem toErrorItem(java.lang.String logMessage, java.lang.String className, java.lang.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 © 2018 Stackify, LLC. All Rights Reserved.