1. /*
  2. * @(#)NotSerializableException.java 1.9 01/11/29
  3. *
  4. * Copyright 2002 Sun Microsystems, Inc. All rights reserved.
  5. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  6. */
  7. package java.io;
  8. /**
  9. * Thrown when an instance is required to have a Serializable interface.
  10. * The serialization runtime or the class of the instance can throw
  11. * this exception. The argument should be the name of the class.
  12. *
  13. * @author unascribed
  14. * @version 1.9, 11/29/01
  15. * @since JDK1.1
  16. */
  17. public class NotSerializableException extends ObjectStreamException {
  18. /**
  19. * @param classname Class of the instance being serialized/deserialized.
  20. */
  21. public NotSerializableException(String classname) {
  22. super(classname);
  23. }
  24. /**
  25. */
  26. public NotSerializableException() {
  27. super();
  28. }
  29. }