|
Oracle® Coherence Java API Reference Release 3.6.0.0 E15725-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 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. |
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, setStackTrace |
Field Detail |
---|
protected String m_sName
protected String m_sMessage
protected String[] m_asStackRemote
Constructor Detail |
---|
protected PortableException()
protected PortableException(String sMessage)
sMessage
- the String that contains a detailed messageprotected PortableException(Throwable e)
e
- the Throwable objectprotected PortableException(String sMessage, Throwable e)
sMessage
- the additional descriptione
- the Throwable objectMethod Detail |
---|
public String getName()
public String[] getFullStackTrace()
public void readExternal(PofReader in) throws IOException
readExternal
in interface PortableObject
in
- 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 PortableObject
out
- the PofWriter to which to write the object's stateIOException
- if an I/O error occurspublic String getMessage()
getMessage
in class Throwable
public void printStackTrace(PrintStream stream)
printStackTrace
in class Throwable
stream
- the PrintStream to use for the outputpublic void printStackTrace(PrintWriter writer)
printStackTrace
in class Throwable
writer
- the PrintWriter to use for the outputpublic String toString()
toString
in class Throwable
|
Oracle® Coherence Java API Reference Release 3.6.0.0 E15725-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |