All exceptions thrown by serialization classes are subclasses of ObjectStreamException
which is a subclass of IOException
.
Exception | Description |
---|---|
|
Superclass of all serialization exceptions. |
|
Thrown when a class cannot be used to restore objects for any of these reasons: Externalizable class does not have a public no-arg constructor.
Serializable class can not access the no-arg constructor of its closest non-Serializable superclass. |
|
Thrown by a |
|
Thrown: readExternal on a PROTOCOL_VERSION_2 stream. |
|
Thrown if defaultWriteObject
putFields
writeFields
Thrown if defaultReadObject
readFields
registerValidation |
|
Thrown when a restored object cannot be made valid. |
|
Thrown by |
|
Thrown when reading a stream terminated by an exception that occurred while the stream was being written. |
Copyright © 2004 Oracle and/or its affiliates.
All rights reserved