1. /*
  2. * @(#)CloneNotSupportedException.java 1.7 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.lang;
  8. /**
  9. * Thrown to indicate that the <code>clone</code> method in class
  10. * <code>Object</code> has been called to clone an object, but that
  11. * the object's class does not implement the <code>Cloneable</code>
  12. * interface.
  13. * <p>
  14. * Applications that override the <code>clone</code> method can also
  15. * throw this exception to indicate that an object could not or
  16. * should not be cloned.
  17. *
  18. * @author unascribed
  19. * @version 1.7, 11/29/01
  20. * @see java.lang.Cloneable
  21. * @see java.lang.Object#clone()
  22. * @since JDK1.0
  23. */
  24. public
  25. class CloneNotSupportedException extends Exception {
  26. /**
  27. * Constructs a <code>CloneNotSupportedException</code> with no
  28. * detail message.
  29. */
  30. public CloneNotSupportedException() {
  31. super();
  32. }
  33. /**
  34. * Constructs a <code>CloneNotSupportedException</code> with the
  35. * specified detail message.
  36. *
  37. * @param s the detail message.
  38. */
  39. public CloneNotSupportedException(String s) {
  40. super(s);
  41. }
  42. }