java.io.InvalidClassException (JDK 1.1)
Signals that the serialization mechanism has encountered one of several possible problems with the class of an object that is being serialized or deserialized. The classname field should contain the name of the class in question, and the getMessage() method is overridden to return this class name with the message.
public classInvalidClassExceptionextends ObjectStreamException { //Public ConstructorspublicInvalidClassException(Stringreason); publicInvalidClassException(Stringcname, Stringreason); //Public Instance Variablespublic Stringclassname; //Public Instance Methodspublic StringgetMessage(); //Overrides Throwable}
Hierarchy:
Object->Throwable(Serializable)->Exception->IOException->ObjectStreamException->InvalidClassException