1. /*
  2. * @(#)NotSerializableException.java 1.11 00/02/02
  3. *
  4. * Copyright 1996-2000 Sun Microsystems, Inc. All Rights Reserved.
  5. *
  6. * This software is the proprietary information of Sun Microsystems, Inc.
  7. * Use is subject to license terms.
  8. *
  9. */
  10. package java.io;
  11. /**
  12. * Thrown when an instance is required to have a Serializable interface.
  13. * The serialization runtime or the class of the instance can throw
  14. * this exception. The argument should be the name of the class.
  15. *
  16. * @author unascribed
  17. * @version 1.11, 02/02/00
  18. * @since JDK1.1
  19. */
  20. public class NotSerializableException extends ObjectStreamException {
  21. /**
  22. * Constructs a NotSerializableException object with message string.
  23. *
  24. * @param classname Class of the instance being serialized/deserialized.
  25. */
  26. public NotSerializableException(String classname) {
  27. super(classname);
  28. }
  29. /**
  30. * Constructs a NotSerializableException object.
  31. */
  32. public NotSerializableException() {
  33. super();
  34. }
  35. }