ObjectStreamException
- superclass of all serialization exceptions
InvalidClassException
- when a class cannot be used to restore objects.
NotSerializableException
- thrown by a readObject
or writeObject
method to terminate serialization or deserialization.
StreamCorruptedException
- thrown when the stream header is invalid or when control information in the stream is not found or found to be invalid.
NotActiveException
- thrown if registerValidation
is not called during readObject
.
InvalidObjectException
- thrown when a restored object cannot be made valid.
OptionalDataException
- thrown by readObject when there is primitive data in the stream when an object is expected. The length field of the exception supplied the number of bytes that are available in the current block.
Copyright © 1996 Sun Microsystems, Inc., 2550 Garcia Ave., Mtn. View, CA 94043-1100 USA. All rights reserved.