1. /*
  2. * @(#)NotSerializableException.java 1.13 03/01/23
  3. *
  4. * Copyright 2003 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.13, 01/23/03
  15. * @since JDK1.1
  16. */
  17. public class NotSerializableException extends ObjectStreamException {
  18. /**
  19. * Constructs a NotSerializableException object with message string.
  20. *
  21. * @param classname Class of the instance being serialized/deserialized.
  22. */
  23. public NotSerializableException(String classname) {
  24. super(classname);
  25. }
  26. /**
  27. * Constructs a NotSerializableException object.
  28. */
  29. public NotSerializableException() {
  30. super();
  31. }
  32. }