java.io
public class InvalidClassException extends ObjectStreamException
The field classname
will contain the name of the
class that caused the problem if known. The getMessage() method
for this exception will always include the name of that class
if known.
Since: 1.1
UNKNOWN: updated to 1.4
Field Summary | |
---|---|
String | classname
The name of the class which encountered the error.
|
Constructor Summary | |
---|---|
InvalidClassException(String message)
Create an exception with a descriptive error message, but a null
classname.
| |
InvalidClassException(String classname, String message)
Create an exception with a descriptive error message, and the name of
the class that caused the problem.
|
Method Summary | |
---|---|
String | getMessage()
Returns the descriptive error message for this exception. |
Serial: the classname causing the error
Parameters: message the descriptive error message
Parameters: classname the name of the faulty class message the descriptive error message
[classname][; ][super.getMessage()]
.
Returns: A descriptive error message, may be null