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