public class PortableException extends RuntimeException implements PortableObject, SerializationSupport
PortableException is an exception that allows information about a remote
exception or error to be serialized and deserialized to/from a POF stream.| Modifier and Type | Field | Description |
|---|---|---|
protected String[] |
m_asStackRemote |
A raw representation of the remote stack trace for this exception.
|
protected String |
m_sMessage |
The exception's message.
|
protected String |
m_sName |
The exception's name.
|
| Modifier | Constructor | Description |
|---|---|---|
protected |
PortableException() |
Default constructor.
|
protected |
PortableException(String sMessage) |
Constructs a
PortableException with the specified detail message. |
protected |
PortableException(String sMessage,
Throwable e) |
Construct a
PortableException from a Throwable object and an additional
description. |
protected |
PortableException(Throwable e) |
Construct a
PortableException from a Throwable object. |
| Modifier and Type | Method | Description |
|---|---|---|
String[] |
getFullStackTrace() |
Return an array of Strings containing the full representation of the
stack trace.
|
String |
getMessage() |
Return the detail message string of this PortableException.
|
String |
getName() |
Return the name of the exception.
|
void |
printStackTrace(PrintStream stream) |
Print this
PortableException and its stack trace to the specified stream. |
void |
printStackTrace(PrintWriter writer) |
Print this
PortableException and its stack trace to the specified writer. |
void |
readExternal(PofReader in) |
Restore the contents of a user type instance by reading its state using
the specified PofReader object.
|
Object |
readResolve() |
Returns the original type, iff the type is a subclass of
PortableException,
during deserialization opposed to a new PortableException with the metadata of the original exception. |
String |
toString() |
Return a human-readable description for this exception.
|
void |
writeExternal(PofWriter out) |
Save the contents of a POF user type instance by writing its state using
the specified PofWriter object.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, setStackTraceclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitwriteReplaceprotected String m_sName
protected String m_sMessage
protected String[] m_asStackRemote
protected PortableException()
protected PortableException(String sMessage)
PortableException with the specified detail message.sMessage - the String that contains a detailed messageprotected PortableException(Throwable e)
PortableException from a Throwable object.e - the Throwable objectpublic Object readResolve() throws ObjectStreamException
PortableException,
during deserialization opposed to a new PortableException with the metadata of the original exception.readResolve in interface SerializationSupportPortableException subclass, if possible, otherwise returns the current
instanceObjectStreamException - if an error occurspublic String getName()
public String[] getFullStackTrace()
public void readExternal(PofReader in) throws IOException
PortableObjectreadExternal in interface PortableObjectin - the PofReader from which to read the object's stateIOException - if an I/O error occurspublic void writeExternal(PofWriter out) throws IOException
PortableObjectwriteExternal in interface PortableObjectout - the PofWriter to which to write the object's stateIOException - if an I/O error occurspublic String getMessage()
getMessage in class Throwablenull)public void printStackTrace(PrintStream stream)
PortableException and its stack trace to the specified stream.printStackTrace in class Throwablestream - the PrintStream to use for the outputpublic void printStackTrace(PrintWriter writer)
PortableException and its stack trace to the specified writer.printStackTrace in class Throwablewriter - the PrintWriter to use for the output