Class java.io.InvalidClassException
All Packages Class Hierarchy This Package Previous Next Index
Class java.io.InvalidClassException
Object
|
+----Throwable
|
+----Exception
|
+----IOException
|
+----ObjectStreamException
|
+----java.io.InvalidClassException
- public class InvalidClassException
- extends ObjectStreamException
Raised when the Serialization runtime detects a problem with a Class.
The class may:
- not match the serial version of the class in the stream
- the class contains unknown datatypes
- the class implements only one of writeObject or readObject methods
- the class is not public
- the class does not have an accessible no-arg constructor
- Version:
- 1.6, 07/01/98
- Author:
- unascribed
- Since:
- JDK1.1
-
classname
-
-
java.io.InvalidClassException(String)
- Report a InvalidClassException for the specified reason.
-
java.io.InvalidClassException(String, String)
-
-
getMessage()
- Produce the message, include the classname if present.
classname
public java.lang.String classname
-
- Since:
JDK1.1
InvalidClassException
public InvalidClassException(String reason)
- Report a InvalidClassException for the specified reason.
- Since:
- JDK1.1
InvalidClassException
public InvalidClassException(String cname,
String reason)
-
- Since:
- JDK1.1
getMessage
public java.lang.String getMessage()
- Produce the message, include the classname if present.
- Overrides:
- getMessage in class Throwable
- Since:
- JDK1.1
All Packages Class Hierarchy This Package Previous Next Index