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.
构造器和说明 |
---|
SerializedThrowable(Throwable exception)
Create a new SerializedThrowable.
|
限定符和类型 | 方法和说明 |
---|---|
Throwable |
deserializeError(ClassLoader classloader) |
static Throwable |
get(Throwable serThrowable,
ClassLoader loader) |
String |
getFullStringifiedStackTrace() |
String |
getOriginalErrorClassName() |
byte[] |
getSerializedException() |
void |
printStackTrace(PrintStream s) |
void |
printStackTrace(PrintWriter s) |
String |
toString() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, setStackTrace
public SerializedThrowable(Throwable exception)
exception
- The exception to serialize.public Throwable deserializeError(ClassLoader classloader)
public String getOriginalErrorClassName()
public byte[] getSerializedException()
public String getFullStringifiedStackTrace()
public void printStackTrace(PrintStream s)
printStackTrace
在类中 Throwable
public void printStackTrace(PrintWriter s)
printStackTrace
在类中 Throwable
public static Throwable get(Throwable serThrowable, ClassLoader loader)
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.