public class InvalidClassException extends ObjectStreamException
Thrown when the Serialization runtime detects one of the following problems with a Class.
public String classname
Name of the invalid class.
public InvalidClassException(String reason)
Report an InvalidClassException for the reason specified.
reason- String describing the reason for the exception.
public InvalidClassException(String cname, String reason)
Constructs an InvalidClassException object.
cname- a String naming the invalid class.
reason- a String describing the reason for the exception.
public String getMessage()
Produce the message and include the classname, if present.
Throwableinstance (which may be
© 1993–2017, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.