public final class ThrowableStore extends Object implements ThrowableData
Constructor and Description |
---|
ThrowableStore(String className,
String message,
List<StackTraceElement> stackTrace,
ThrowableData cause) |
Modifier and Type | Method and Description |
---|---|
ThrowableData |
getCause()
Gets the cause of the throwable to output.
|
String |
getClassName()
Gets the class name of the throwable to output.
|
String |
getMessage()
Gets the message of the throwable to output.
|
List<StackTraceElement> |
getStackTrace()
Gets the stack trace of the throwable to output.
|
public ThrowableStore(String className, String message, List<StackTraceElement> stackTrace, ThrowableData cause)
className
- Class name of the throwablemessage
- Message of the throwablestackTrace
- Stack trace for the throwablecause
- Cause of the throwable (can be null
)public String getClassName()
ThrowableData
getClassName
in interface ThrowableData
public String getMessage()
ThrowableData
getMessage
in interface ThrowableData
public List<StackTraceElement> getStackTrace()
ThrowableData
getStackTrace
in interface ThrowableData
public ThrowableData getCause()
ThrowableData
getCause
in interface ThrowableData
null
Copyright © 2020. All rights reserved.