public class DefaultExceptionDescriptor extends Object implements ExceptionDescriptor
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
ExceptionDescriptor |
getCause()
Returns the cause for this exception.
|
Class<? extends Throwable> |
getExceptionClass()
Best-effort attempt to provide an exception type for
ExceptionDescriptor.getExceptionClassName(). |
String |
getExceptionClassName() |
String |
getMessage() |
List<StackTraceElement> |
getStackTrace()
This method will create a brand new unmodifiable list every time it is
called.
|
int |
hashCode() |
boolean |
isRootCause() |
static ExceptionDescriptor |
parseStackTrace(Collection<String> lines)
Take a chunk of log and try to parse an exception out of it.
|
String |
toString() |
public static ExceptionDescriptor parseStackTrace(Collection<String> lines)
lines - Any random log, separated into lines.public ExceptionDescriptor getCause()
ExceptionDescriptorgetCause in interface ExceptionDescriptorExceptionDescriptor.isRootCause() returns true, null
otherwise.public Class<? extends Throwable> getExceptionClass()
ExceptionDescriptorExceptionDescriptor.getExceptionClassName().getExceptionClass in interface ExceptionDescriptorpublic String getExceptionClassName()
getExceptionClassName in interface ExceptionDescriptorpublic String getMessage()
getMessage in interface ExceptionDescriptorpublic List<StackTraceElement> getStackTrace()
ExceptionDescriptorgetStackTrace in interface ExceptionDescriptorpublic boolean isRootCause()
isRootCause in interface ExceptionDescriptorCopyright © 2015. All rights reserved.