java.io
Exception InvalidClassException

public class InvalidClassException
extends ObjectStreamException
Thrown when the Serialization runtime detects one of the following problems with a Class.
  • The serial version of the class does not match that of the class descriptor read from the stream
  • The class contains unknown datatypes
  • The class does not have an accessible no-arg constructor
SinceJDK1.1
Version1.30, 05/05/07
Authorunascribed
Wiki javadoc Use textile entry format.
Add your comments here.
Field Summary
String classname
Name of the invalid class.
Constructor Summary
InvalidClassException( String reason )
Report an InvalidClassException for the reason specified.
InvalidClassException( String cname, String reason )
Constructs an InvalidClassException object.
Method Summary
String getMessage()
Produce the message and include the classname, if present.
classname
public String classname
Name of the invalid class.
Wiki javadoc Use textile entry format.
Add your comments here.
InvalidClassException
public InvalidClassException ( String reason )
Report an InvalidClassException for the reason specified.
Parameters
TypeNameDescription
String reason String describing the reason for the exception.
Wiki javadoc Use textile entry format.
Add your comments here.
InvalidClassException
public InvalidClassException ( String cname, String reason )
Constructs an InvalidClassException object.
Parameters
TypeNameDescription
String cname a String naming the invalid class.
String reason a String describing the reason for the exception.
Wiki javadoc Use textile entry format.
Add your comments here.
getMessage
public String getMessage ( )
Produce the message and include the classname, if present.
Overrides method in Throwable
Wiki javadoc Use textile entry format.
Add your comments here.