public class PortableException extends RuntimeException implements PortableObject
| Modifier and Type | Field and 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 and 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 and 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. 
 | 
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, setStackTraceprotected String m_sName
protected String m_sMessage
protected String[] m_asStackRemote
protected PortableException()
protected PortableException(String sMessage)
sMessage - the String that contains a detailed messageprotected PortableException(Throwable e)
e - the Throwable objectpublic String getName()
public String[] getFullStackTrace()
public void readExternal(PofReader in) throws IOException
readExternal 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
writeExternal in interface PortableObjectout - the PofWriter to which to write the object's stateIOException - if an I/O error occurspublic String getMessage()
getMessage in class Throwablepublic void printStackTrace(PrintStream stream)
printStackTrace in class Throwablestream - the PrintStream to use for the outputpublic void printStackTrace(PrintWriter writer)
printStackTrace in class Throwablewriter - the PrintWriter to use for the output