1 /* 2 * @(#)StreamCorruptedException.java 1.14 03/12/19 3 * 4 * Copyright 2004 Sun Microsystems, Inc. All rights reserved. 5 * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. 6 */ 7 8 package java.io; 9 10 /** 11 * Thrown when control information that was read from an object stream 12 * violates internal consistency checks. 13 * 14 * @author unascribed 15 * @version 1.14, 12/19/03 16 * @since JDK1.1 17 */ 18 public class StreamCorruptedException extends ObjectStreamException { 19 /** 20 * Create a StreamCorruptedException and list a reason why thrown. 21 * 22 * @param reason String describing the reason for the exception. 23 */ 24 public StreamCorruptedException(String reason) { 25 super(reason); 26 } 27 28 /** 29 * Create a StreamCorruptedException and list no reason why thrown. 30 */ 31 public StreamCorruptedException() { 32 super(); 33 } 34 } 35