com.stackify.api.common.lang
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 com.stackify.api.ErrorItem |
toErrorItem(String logMessage,
Throwable t)
Converts a Throwable to an ErrorItem
|
static com.stackify.api.ErrorItem |
toErrorItem(Throwable t)
Converts a Throwable to an ErrorItem
|
public static List<Throwable> getCausalChain(Throwable throwable)
throwable - The Throwablepublic static com.stackify.api.ErrorItem toErrorItem(String logMessage, Throwable t)
logMessage - The log message (can be null)t - The Throwable to be convertedpublic static com.stackify.api.ErrorItem toErrorItem(Throwable t)
t - The Throwable to be convertedCopyright © 2014 Stackify, LLC. All Rights Reserved.