java.io.InvalidObjectException (JDK 1.1)
This exception should be thrown by the validateObject() method of an object that implements the ObjectInputValidation interface when a deserialized object fails an input validation test for any reason.
public classInvalidObjectExceptionextends ObjectStreamException { //Public ConstructorpublicInvalidObjectException(Stringreason); }
Hierarchy:
Object->Throwable(Serializable)->Exception->IOException->ObjectStreamException->InvalidObjectException
Thrown By:
ObjectInputStream.registerValidation(), ObjectInputValidation.validateObject()