Serializablepublic class InvalidClassException extends ObjectStreamException
| 构造器 | 说明 |
|---|---|
InvalidClassException(String reason) |
Report an InvalidClassException for the reason specified.
|
InvalidClassException(String cname,
String reason) |
Constructs an InvalidClassException object.
|
public String classname
public InvalidClassException(String reason)
reason - String describing the reason for the exception.public String getMessage()
getMessage 在类中 ThrowableThrowable instance
(which may be null).