java.io.InvalidClassException
java.io.ObjectStreamException
None
None
New as of JDK 1.1
An InvalidClassException is thrown during object serialization. It indicates that the run-time environment does not support a serialized class for one of the following reasons:
An InvalidClassException can also indicate one of these problems with the class itself:
public class java.io.InvalidClassException extends java.io.ObjectStreamException { // Variables public String classname; // Constructors public InvalidClassException(String reason); public InvalidClassException(String cname, String reason); // Instance Methods public String getMessage(); }
The name of the class that caused the exception.
The reason the exception was thrown.
This constructor creates an InvalidClassException with the specified reason string.
The name of the class.
The reason the exception was thrown.
This constructor creates an InvalidClassException with the specified class name and reason string.
The reason string for this exception.
Throwable.getMessage()
This method returns the reason string for this exception. If a class name has also been specified, it is prepended to the reason string with a semicolon.
Method |
Inherited From |
Method |
Inherited From |
---|---|---|---|
clone() |
Object |
equals(Object) |
Object |
fillInStackTrace() |
Throwable |
finalize() |
Object |
getClass() |
Object |
getLocalizedMessage() |
Throwable |
getMessage() |
Throwable |
hashCode() |
Object |
notify() |
Object |
notifyAll() |
Object |
printStackTrace() |
Throwable |
printStackTrace(PrintStream) |
Throwable |
printStackTrace(PrintWriter) |
Throwable |
toString() |
Object |
wait() |
Object |
wait(long) |
Object |
wait(long, int) |
Object |
Exception, ObjectStreamException, Throwable
This HTML Help has been published using the chm2web software. |