23 * questions.
24 */
25
26 package java.io;
27
28 /**
29 * Thrown when the Serialization runtime detects one of the following
30 * problems with a Class.
31 * <UL>
32 * <LI> The serial version of the class does not match that of the class
33 * descriptor read from the stream
34 * <LI> The class contains unknown datatypes
35 * <LI> The class does not have an accessible no-arg constructor
36 * </UL>
37 *
38 * @author unascribed
39 * @since 1.1
40 */
41 public class InvalidClassException extends ObjectStreamException {
42
43 private static final long serialVersionUID = -4333316296251054416L;
44
45 /**
46 * Name of the invalid class.
47 *
48 * @serial Name of the invalid class.
49 */
50 public String classname;
51
52 /**
53 * Report an InvalidClassException for the reason specified.
54 *
55 * @param reason String describing the reason for the exception.
56 */
57 public InvalidClassException(String reason) {
58 super(reason);
59 }
60
61 /**
62 * Constructs an InvalidClassException object.
|
23 * questions.
24 */
25
26 package java.io;
27
28 /**
29 * Thrown when the Serialization runtime detects one of the following
30 * problems with a Class.
31 * <UL>
32 * <LI> The serial version of the class does not match that of the class
33 * descriptor read from the stream
34 * <LI> The class contains unknown datatypes
35 * <LI> The class does not have an accessible no-arg constructor
36 * </UL>
37 *
38 * @author unascribed
39 * @since 1.1
40 */
41 public class InvalidClassException extends ObjectStreamException {
42
43 @java.io.Serial
44 private static final long serialVersionUID = -4333316296251054416L;
45
46 /**
47 * Name of the invalid class.
48 *
49 * @serial Name of the invalid class.
50 */
51 public String classname;
52
53 /**
54 * Report an InvalidClassException for the reason specified.
55 *
56 * @param reason String describing the reason for the exception.
57 */
58 public InvalidClassException(String reason) {
59 super(reason);
60 }
61
62 /**
63 * Constructs an InvalidClassException object.
|