[ Web Proxy ]
URL:
Viewing: https://docs.oracle.com/en/java/javase/24/docs/api/java.base/java/io/InvalidClassException.html [Back]  [Original]

InvalidClassException (Java SE 24 & JDK 24)
Contents 
Hide sidebar ❮❯ Show sidebar
  1. Description
  2. Field Summary
  3. Constructor Summary
  4. Method Summary
  5. Field Details
    1. classname
  6. Constructor Details
    1. InvalidClassException(String)
    2. InvalidClassException(String, String)
    3. InvalidClassException(String, Throwable)
    4. InvalidClassException(String, String, Throwable)
  7. Method Details
    1. getMessage()

Class InvalidClassException

java.lang.Object
All Implemented Interfaces:
Serializable

public class InvalidClassException extends ObjectStreamException
Thrown when the Serialization runtime detects one of the following problems with a Class.
  • The serial version of the class does not match that of the class descriptor read from the stream
  • The class contains unknown datatypes
  • The class does not have an accessible no-arg constructor
  • The ObjectStreamClass of an enum constant does not represent an enum type
  • Other conditions given in the Java Object Serialization Specification
Since:
1.1
See Also:


Web Proxy Viewer  |  New URL  |  Original Page