Package java.io
Class ObjectStreamException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.io.IOException
-
- java.io.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.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedObjectStreamException()Constructs a newObjectStreamExceptionwith its stack trace filled in.protectedObjectStreamException(String detailMessage)Constructs a newObjectStreamExceptionwith its stack trace and detail message filled in.
-
Method Summary
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
ObjectStreamException
protected ObjectStreamException()
Constructs a newObjectStreamExceptionwith its stack trace filled in.
-
ObjectStreamException
protected ObjectStreamException(String detailMessage)
Constructs a newObjectStreamExceptionwith its stack trace and detail message filled in.- Parameters:
detailMessage- the detail message for this exception.
-
-