|
CoherenceTM v3.3 Copyright© 2000-2007 by Oracle Corporation |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.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.
Constructor Summary | |
---|---|
PortableException()
Default constructor (for PortableObject). |
|
PortableException(String s)
Construct a PortableException with a specified detail message. |
|
PortableException(String s,
Throwable e)
Construct a PortableException with a specified detail message and cause. |
|
PortableException(Throwable e)
Construct a PortableException with a specified cause. |
Method Summary | |
---|---|
String |
getLocalizedMessage()
Return a localized description of this PortableException |
String |
getMessage()
Return the detail message of this PortableException |
protected String |
getRemoteMessage()
Return a wrapped detail message indicating that this PortableException was deserialized from a POF stream |
protected String |
getStackTrace(Throwable e)
Return a string that contains the stack trace information of the given Throwable. |
void |
printStackTrace()
Print this PortableException and its stack trace to the standard error stream. |
void |
printStackTrace(PrintStream stream)
Print this PortableException and its stack trace to the specified PrintStream. |
void |
printStackTrace(PrintWriter writer)
Print this PortableException and its stack trace to the specified PrintWriter. |
void |
readExternal(ObjectInput in)
The object implements the readExternal method to restore its contents by calling the methods of DataInput for primitive types and readObject for objects, strings and arrays. |
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 short description of this PortableException |
void |
writeExternal(ObjectOutput out)
The object implements the writeExternal method to save its contents by calling the methods of DataOutput for its primitive values or calling the writeObject method of ObjectOutput for objects, strings, and arrays. |
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, getStackTrace, initCause, setStackTrace |
Constructor Detail |
---|
public PortableException()
public PortableException(String s)
s
- the String that contains the detail message; this message may
be retrieved via the getMessage()
methodpublic PortableException(String s, Throwable e)
s
- the String that contains the detail message; this message may
be retrieved via the getMessage()
methode
- the Throwable object that is the cause of the exception;
this Throwable may be retrieved via the Throwable.getCause()
methodpublic PortableException(Throwable e)
e
- the Throwable object that is the cause of the exception;
this Throwable may be retrieved via the Throwable.getCause()
methodMethod Detail |
---|
public String getMessage()
getMessage
in class Throwable
public String getLocalizedMessage()
getLocalizedMessage
in class Throwable
public String toString()
toString
in class Throwable
public void printStackTrace()
printStackTrace
in class Throwable
public void printStackTrace(PrintStream stream)
printStackTrace
in class Throwable
stream
- PrintStream to use for outputpublic void printStackTrace(PrintWriter writer)
printStackTrace
in class Throwable
writer
- PrintWriter to use for outputpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
in
- the stream to read data from in order to restore the object
IOException
- if I/O errors occur
ClassNotFoundException
- if the class for an object being
restored cannot be found.public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
out
- the stream to write the object to
IOException
- includes any I/O exceptions that may occurpublic void readExternal(PofReader in) throws IOException
readExternal
in interface PortableObject
in
- the PofReader from which to read the object's state
IOException
- 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 state
IOException
- if an I/O error occursprotected String getRemoteMessage()
protected String getStackTrace(Throwable e)
e
- the Throwable
|
CoherenceTM v3.3 Copyright© 2000-2007 by Oracle Corporation |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |