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()
ExceptionDescriptor
getCause
in interface ExceptionDescriptor
ExceptionDescriptor.isRootCause()
returns true, null
otherwise.public Class<? extends Throwable> getExceptionClass()
ExceptionDescriptor
ExceptionDescriptor.getExceptionClassName()
.getExceptionClass
in interface ExceptionDescriptor
public String getExceptionClassName()
getExceptionClassName
in interface ExceptionDescriptor
public String getMessage()
getMessage
in interface ExceptionDescriptor
public List<StackTraceElement> getStackTrace()
ExceptionDescriptor
getStackTrace
in interface ExceptionDescriptor
public boolean isRootCause()
isRootCause
in interface ExceptionDescriptor
Copyright © 2015. All rights reserved.