Build 1.0_r1(from source)

java.io
Class WriteAbortedException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.io.IOException
              extended by java.io.ObjectStreamException
                  extended by java.io.WriteAbortedException
All Implemented Interfaces:
Serializable

public class WriteAbortedException
extends ObjectStreamException

This type of exception is thrown by readObject() when it detects an exception marker in the input stream. This marker indicates that when the object was being serialized, an exception happened and this marker was inserted instead of the original object. It is a way to "propagate" an exception from the code that attempted to write the object to the code that is attempting to read the object.

See Also:
ObjectInputStream.readObject(), Serialized Form

Field Summary
 Exception detail
          The exception that was caused when writeObject() was attempting to serialize the object
 
Constructor Summary
WriteAbortedException(String detailMessage, Exception rootCause)
          Constructs a new instance of this class with its walkback, message and the exception which caused the underlying problem when serializing the object filled in.
 
Method Summary
 Throwable getCause()
          Returns the cause of this Throwable, or null if there is no cause.
 String getMessage()
          Returns the extra information message which was provided when the throwable was created.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

detail

public Exception detail
The exception that was caused when writeObject() was attempting to serialize the object

Constructor Detail

WriteAbortedException

public WriteAbortedException(String detailMessage,
                             Exception rootCause)
Constructs a new instance of this class with its walkback, message and the exception which caused the underlying problem when serializing the object filled in.

Parameters:
detailMessage - the detail message for the exception.
rootCause - exception that caused the problem when serializing the object.
Method Detail

getMessage

public String getMessage()
Returns the extra information message which was provided when the throwable was created. If no message was provided at creation time, then answer null.

Overrides:
getMessage in class Throwable
Returns:
the receiver's message.

getCause

public Throwable getCause()
Returns the cause of this Throwable, or null if there is no cause.

Overrides:
getCause in class Throwable
Returns:
the receiver's cause.

Build 1.0_r1(from source)

Please submit a feedback, bug or feature