| |
|
| java.lang.Object java.lang.Throwable java.lang.Exception java.io.IOException java.io.ObjectStreamException java.io.InvalidClassException
InvalidClassException | public class InvalidClassException extends ObjectStreamException (Code) | | A problem was found with the class of one of the objects being serialized or
deserialized. These can be
- The SUIDs of the class loaded by the VM and the serialized class info do
not match
- A serializable or externalizable object cannot be instantiated (when
deserializing) because the empty constructor that needs to be run is not
visible or fails.
See Also: ObjectInputStream.readObject See Also: ObjectInputValidation.validateObject |
Constructor Summary | |
public | InvalidClassException(String detailMessage) Constructs a new instance of this class with its walkback and message
filled in. | public | InvalidClassException(String className, String detailMessage) Constructs a new instance of this class with its walkback, message and
the fully qualified name of the class which caused the exception filled
in. |
Method Summary | |
public String | getMessage() Answers the extra information message which was provided when the
exception was created. |
classname | public String classname(Code) | | The fully qualified name of the class that caused the problem
|
InvalidClassException | public InvalidClassException(String detailMessage)(Code) | | Constructs a new instance of this class with its walkback and message
filled in.
Parameters: detailMessage - The detail message for the exception. |
InvalidClassException | public InvalidClassException(String className, String detailMessage)(Code) | | Constructs a new instance of this class with its walkback, message and
the fully qualified name of the class which caused the exception filled
in.
Parameters: className - The detail message for the exception. Parameters: detailMessage - The detail message for the exception. |
getMessage | public String getMessage()(Code) | | Answers the extra information message which was provided when the
exception was created. If no message was provided at creation time, then
answer null. If a message was provided and a class name which caused the
exception, the values are concatenated and returned.
The receiver's message, possibly concatenated with the name ofthe class that caused the problem. |
|
|
|