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.