Package java.io

Class ObjectStreamException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
InvalidClassException, InvalidObjectException, NotActiveException, NotSerializableException, OptionalDataException, StreamCorruptedException, WriteAbortedException

public abstract class ObjectStreamException
extends IOException
Signals some sort of problem during either serialization or deserialization of objects. This is actually the superclass of several other, more specific exception classes.
See Also:
InvalidObjectException, NotActiveException, NotSerializableException, OptionalDataException, StreamCorruptedException, WriteAbortedException, Serialized Form
  • Constructor Details

    • ObjectStreamException

      protected ObjectStreamException()
      Constructs a new ObjectStreamException with its stack trace filled in.
    • ObjectStreamException

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