home *** CD-ROM | disk | FTP | other *** search
/ Java 1.2 How-To / JavaHowTo.iso / 3rdParty / jbuilder / unsupported / JDK1.2beta3 / SOURCE / SRC.ZIP / java / lang / CloneNotSupportedException.java < prev    next >
Encoding:
Java Source  |  1998-03-20  |  1.5 KB  |  54 lines

  1. /*
  2.  * @(#)CloneNotSupportedException.java    1.5 98/03/18
  3.  *
  4.  * Copyright 1995-1997 by Sun Microsystems, Inc.,
  5.  * 901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
  6.  * All rights reserved.
  7.  *
  8.  * This software is the confidential and proprietary information
  9.  * of Sun Microsystems, Inc. ("Confidential Information").  You
  10.  * shall not disclose such Confidential Information and shall use
  11.  * it only in accordance with the terms of the license agreement
  12.  * you entered into with Sun.
  13.  */
  14.  
  15. package java.lang;
  16.  
  17. /**
  18.  * Thrown to indicate that the <code>clone</code> method in class 
  19.  * <code>Object</code> has been called to clone an object, but that 
  20.  * the object's class does not implement the <code>Cloneable</code> 
  21.  * interface. 
  22.  * <p>
  23.  * Applications that override the <code>clone</code> method can also 
  24.  * throw this exception to indicate that an object could not or 
  25.  * should not be cloned.
  26.  *
  27.  * @author  unascribed
  28.  * @version 1.5, 03/18/98
  29.  * @see     java.lang.Cloneable
  30.  * @see     java.lang.Object#clone()
  31.  * @since   JDK1.0
  32.  */
  33.  
  34. public
  35. class CloneNotSupportedException extends Exception {
  36.     /**
  37.      * Constructs a <code>CloneNotSupportedException</code> with no 
  38.      * detail message. 
  39.      */
  40.     public CloneNotSupportedException() {
  41.     super();
  42.     }
  43.  
  44.     /**
  45.      * Constructs a <code>CloneNotSupportedException</code> with the 
  46.      * specified detail message. 
  47.      *
  48.      * @param   s   the detail message.
  49.      */
  50.     public CloneNotSupportedException(String s) {
  51.     super(s);
  52.     }
  53. }
  54.