public class InvalidClassException extends ObjectStreamException
| Constructor and Description |
|---|
InvalidClassException(String reason)
报告invalidclassexception为此指定。
|
InvalidClassException(String cname, String reason)
构建了一个invalidclassexception对象。
|
| Modifier and Type | Method and Description |
|---|---|
String |
getMessage()
生成包含类名的信息,如果存在。
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic String classname
public InvalidClassException(String reason)
reason字符串描述异常的原因。
public String getMessage()
getMessage 方法重写,继承类
Throwable
Throwable实例的详细信息的字符串(可以
null)。
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.