public class SerializedThrowable extends Exception implements Serializable
This exception mimics the original exception with respect to message and stack trace, and contains the original exception in serialized form. The original exception can be re-obtained by supplying the appropriate class loader.
| Constructor and Description |
|---|
SerializedThrowable(Throwable exception)
Create a new SerializedThrowable.
|
| Modifier and Type | Method and Description |
|---|---|
Throwable |
deserializeError(ClassLoader classloader) |
static Throwable |
get(Throwable serThrowable,
ClassLoader loader) |
Throwable |
getCause() |
StackTraceElement[] |
getStackTrace() |
String |
getStrigifiedStackTrace() |
void |
printStackTrace(PrintStream s) |
void |
printStackTrace(PrintWriter s) |
String |
toString() |
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getSuppressed, initCause, printStackTrace, setStackTracepublic SerializedThrowable(Throwable exception)
exception - The exception to serialize.public Throwable deserializeError(ClassLoader classloader)
public String getStrigifiedStackTrace()
public void printStackTrace(PrintStream s)
printStackTrace in class Throwablepublic void printStackTrace(PrintWriter s)
printStackTrace in class Throwablepublic StackTraceElement[] getStackTrace()
getStackTrace in class Throwablepublic static Throwable get(Throwable serThrowable, ClassLoader loader)
Copyright © 2014–2016 The Apache Software Foundation. All rights reserved.