1 /* 2 * @(#)NotSerializableException.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 an instance is required to have a Serializable interface. 12 * The serialization runtime or the class of the instance can throw 13 * this exception. The argument should be the name of the class. 14 * 15 * @author unascribed 16 * @version 1.14, 12/19/03 17 * @since JDK1.1 18 */ 19 public class NotSerializableException extends ObjectStreamException { 20 /** 21 * Constructs a NotSerializableException object with message string. 22 * 23 * @param classname Class of the instance being serialized/deserialized. 24 */ 25 public NotSerializableException(String classname) { 26 super(classname); 27 } 28 29 /** 30 * Constructs a NotSerializableException object. 31 */ 32 public NotSerializableException() { 33 super(); 34 } 35 } 36