public class ErrorLogger extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ErrorLogger.DeconstructedException
The result of exception "deconstruction".
|
static interface |
ErrorLogger.LogImpl |
Constructor and Description |
---|
ErrorLogger(ErrorLogger.LogImpl logger,
HumanReadableExceptionAugmentor errorAugmentor) |
Modifier and Type | Method and Description |
---|---|
static ErrorLogger.DeconstructedException |
deconstruct(Throwable originalException)
Deconstructs an exception to assist in creating user-friendly messages.
|
static String |
getUserFriendlyMessage(Throwable e)
Prints the stacktrace as formatted by an ErrorLogger.
|
void |
logException(Throwable e) |
public ErrorLogger(ErrorLogger.LogImpl logger, HumanReadableExceptionAugmentor errorAugmentor)
public static String getUserFriendlyMessage(Throwable e)
public void logException(Throwable e)
public static ErrorLogger.DeconstructedException deconstruct(Throwable originalException)