Package java.io

Class StreamCorruptedException

All Implemented Interfaces:
Serializable

public class StreamCorruptedException
extends ObjectStreamException
Signals that the ObjectInputStream.readObject() method could not read an object due to missing information (for example, a cyclic reference that doesn't match a previous instance, or a missing class descriptor for the object to be loaded).
See Also:
ObjectInputStream, OptionalDataException, Serialized Form
  • Constructor Details

    • StreamCorruptedException

      public StreamCorruptedException()
      Constructs a new StreamCorruptedException with its stack trace filled in.
    • StreamCorruptedException

      public StreamCorruptedException​(String detailMessage)
      Constructs a new StreamCorruptedException with its stack trace and detail message filled in.
      Parameters:
      detailMessage - the detail message for this exception.