| Constructor and Description |
|---|
BasicThrowable(String className,
String message,
StackTraceElement[] stackTraces,
BasicThrowable cause)
This constructor is used by
BasicThrowableCodec during de-serialization. |
BasicThrowable(Throwable throwable)
This constructor is used to create serializable instance from
Throwable. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
BasicThrowable |
getCause()
Return the cause of Throwable if it is available, otherwise
null. |
String |
getClassName()
Return the class name for the Throwable.
|
String |
getMessage()
Return the detail message associated with the Throwable.
|
StackTraceElement[] |
getStackTraces()
Return the stack traces.
|
int |
hashCode() |
public BasicThrowable(String className, String message, StackTraceElement[] stackTraces, @Nullable BasicThrowable cause)
BasicThrowableCodec during de-serialization.className - the name of the Throwablemessage - the message inside the ThrowablestackTraces - stack traces associated with the Throwablecause - cause associated with the Throwablepublic String getClassName()
public String getMessage()
public StackTraceElement[] getStackTraces()
@Nullable public BasicThrowable getCause()
null.Copyright © 2016 Cask Data, Inc. Licensed under the Apache License, Version 2.0.