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 class InvalidObjectException extends ObjectStreamException { // Public Constructor public InvalidObjectException(String reason); }
Object->Throwable(Serializable)->Exception->IOException->ObjectStreamException->InvalidObjectException
ObjectInputStream.registerValidation(), ObjectInputValidation.validateObject()