|
Oracle® Coherence Java API Reference v3.5 E14977-01 |
|||||||
| 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_asStackRemoteA raw representation of the remote stack trace for this exception. |
protected java.lang.String |
m_sMessageThe exception's message. |
protected java.lang.String |
m_sNameThe 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 object
protected PortableException(java.lang.String sMessage,
java.lang.Throwable e)
sMessage - the additional descriptione - the Throwable object| Method Detail |
|---|
public java.lang.String getName()
public java.lang.String[] getFullStackTrace()
public void readExternal(PofReader in)
throws java.io.IOException
readExternal in interface PortableObjectin - the PofReader from which to read the object's statejava.io.IOException - if an I/O error occurs
public void writeExternal(PofWriter out)
throws java.io.IOException
writeExternal in interface PortableObjectout - 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.Throwablepublic void printStackTrace(java.io.PrintStream stream)
printStackTrace in class java.lang.Throwablestream - the PrintStream to use for the outputpublic void printStackTrace(java.io.PrintWriter writer)
printStackTrace in class java.lang.Throwablewriter - the PrintWriter to use for the outputpublic java.lang.String toString()
toString in class java.lang.Throwable
|
Oracle® Coherence Java API Reference v3.5 E14977-01 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||