java.io
public
abstract
class
java.io.ObjectStreamException
This is the superclass of all exceptions that can happen when serializing or
deserialing objects. The state of the stream is unknown when one of these
serialization-related exceptions are thrown.
Known Direct Subclasses
InvalidClassException |
A problem was found with the class of one of the objects being serialized or
deserialized. |
InvalidObjectException |
The object graph loaded (deserialized) can be validated by a collection of
validator objects. |
NotActiveException |
Some methods in ObjectInputStream and ObjectOutputStream can only be called
from a nested call to readObject() or writeObject(). |
NotSerializableException |
When an implementation of ObjectOutput.writeObject() is passed an object that
is not serializable, it will throw this type of exception. |
OptionalDataException |
When readObject() encounters primitive types (int, char, etc) instead of an
object instance in the input stream, this type of exception will be thrown. |
StreamCorruptedException |
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. |
WriteAbortedException |
This type of exception is thrown by readObject() when it detects an exception
marker in the input stream. |
Summary
Protected Constructors
fillInStackTrace,
getCause,
getLocalizedMessage,
getMessage,
getStackTrace,
initCause,
printStackTrace,
printStackTrace,
printStackTrace,
setStackTrace,
toString
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait
Details
Protected Constructors
protected
ObjectStreamException()
Constructs a new instance of this class with its walkback filled in.
protected
ObjectStreamException(String detailMessage)
Constructs a new instance of this class with its walkback and message
filled in.
Parameters
detailMessage
| The detail message for the exception.
|