java.io
Class StreamCorruptedException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.io.IOException
              extended byjava.io.ObjectStreamException
                  extended byjava.io.StreamCorruptedException
All Implemented Interfaces:
Serializable

public class StreamCorruptedException
extends ObjectStreamException

When readObject() cannot read an object from the input stream due to missing information (cyclic reference that doesn't match previous instance or missing class descriptor for instance to be loaded) this type of exception is thrown.

See Also:
ObjectInputStream, OptionalDataException, Serialized Form

Constructor Summary
StreamCorruptedException()
          Constructs a new instance of this class with its walkback filled in.
StreamCorruptedException(java.lang.String detailMessage)
          Constructs a new instance of this class with its walkback and message filled in.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StreamCorruptedException

public StreamCorruptedException()
Constructs a new instance of this class with its walkback filled in.


StreamCorruptedException

public StreamCorruptedException(java.lang.String detailMessage)
Constructs a new instance of this class with its walkback and message filled in.

Parameters:
detailMessage - the detail message for the exception.