20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
23 * questions.
24 */
25
26 package java.io;
27
28 /**
29 * Indicates that one or more deserialized objects failed validation
30 * tests. The argument should provide the reason for the failure.
31 *
32 * @see ObjectInputValidation
33 * @since 1.1
34 *
35 * @author unascribed
36 * @since 1.1
37 */
38 public class InvalidObjectException extends ObjectStreamException {
39
40 private static final long serialVersionUID = 3233174318281839583L;
41
42 /**
43 * Constructs an <code>InvalidObjectException</code>.
44 * @param reason Detailed message explaining the reason for the failure.
45 *
46 * @see ObjectInputValidation
47 */
48 public InvalidObjectException(String reason) {
49 super(reason);
50 }
51 }
|
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
23 * questions.
24 */
25
26 package java.io;
27
28 /**
29 * Indicates that one or more deserialized objects failed validation
30 * tests. The argument should provide the reason for the failure.
31 *
32 * @see ObjectInputValidation
33 * @since 1.1
34 *
35 * @author unascribed
36 * @since 1.1
37 */
38 public class InvalidObjectException extends ObjectStreamException {
39
40 @java.io.Serial
41 private static final long serialVersionUID = 3233174318281839583L;
42
43 /**
44 * Constructs an <code>InvalidObjectException</code>.
45 * @param reason Detailed message explaining the reason for the failure.
46 *
47 * @see ObjectInputValidation
48 */
49 public InvalidObjectException(String reason) {
50 super(reason);
51 }
52 }
|