|
Oracle® Coherence Java API Reference Release 12.1.2.0.3 E26043-02 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.tangosol.io.pof.PortableException
public class PortableException
A PortableException is an exception that allows information about a remote exception or error to be serialized and deserialized to/from a POF stream.
Field Summary | |
---|---|
protected java.lang.String[] |
m_asStackRemote A raw representation of the remote stack trace for this exception. |
protected java.lang.String |
m_sMessage The exception's message. |
protected java.lang.String |
m_sName The exception's name. |
Constructor Summary | |
---|---|
protected |
PortableException() Default constructor. |
protected |
PortableException(java.lang.String sMessage) Constructs a PortableException with the specified detail message. |
protected |
PortableException(java.lang.String sMessage, java.lang.Throwable e) Construct a PortableException from a Throwable object and an additional description. |
protected |
PortableException(java.lang.Throwable e) Construct a PortableException from a Throwable object. |
Method Summary | |
---|---|
java.lang.String[] |
getFullStackTrace() Return an array of Strings containing the full representation of the stack trace. |
java.lang.String |
getMessage() Return the detail message string of this PortableException. |
java.lang.String |
getName() Return the name of the exception. |
void |
printStackTrace(java.io.PrintStream stream) Print this PortableException and its stack trace to the specified stream. |
void |
printStackTrace(java.io.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. |
java.lang.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. |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, setStackTrace |
Field Detail |
---|
protected java.lang.String m_sName
protected java.lang.String m_sMessage
protected java.lang.String[] m_asStackRemote
Constructor Detail |
---|
protected PortableException()
protected PortableException(java.lang.String sMessage)
sMessage
- the String that contains a detailed messageprotected PortableException(java.lang.Throwable e)
e
- the Throwable objectprotected PortableException(java.lang.String sMessage, java.lang.Throwable e)
sMessage
- the additional descriptione
- the Throwable objectMethod Detail |
---|
public java.lang.String getName()
public java.lang.String[] getFullStackTrace()
public void readExternal(PofReader in) throws java.io.IOException
readExternal
in interface PortableObject
in
- the PofReader from which to read the object's statejava.io.IOException
- if an I/O error occurspublic void writeExternal(PofWriter out) throws java.io.IOException
writeExternal
in interface PortableObject
out
- the PofWriter to which to write the object's statejava.io.IOException
- if an I/O error occurspublic java.lang.String getMessage()
getMessage
in class java.lang.Throwable
public void printStackTrace(java.io.PrintStream stream)
printStackTrace
in class java.lang.Throwable
stream
- the PrintStream to use for the outputpublic void printStackTrace(java.io.PrintWriter writer)
printStackTrace
in class java.lang.Throwable
writer
- the PrintWriter to use for the outputpublic java.lang.String toString()
toString
in class java.lang.Throwable
|
Oracle® Coherence Java API Reference Release 12.1.2.0.3 E26043-02 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |