home *** CD-ROM | disk | FTP | other *** search
/ Chip 1998 November / Chip_1998-11_cd.bin / tema / Cafe / main.bin / CloneNotSupportedException.java < prev    next >
Text File  |  1997-05-20  |  2KB  |  65 lines

  1. /*
  2.  * @(#)CloneNotSupportedException.java    1.3 97/01/20
  3.  * 
  4.  * Copyright (c) 1995, 1996 Sun Microsystems, Inc. All Rights Reserved.
  5.  * 
  6.  * This software is the confidential and proprietary information of Sun
  7.  * Microsystems, Inc. ("Confidential Information").  You shall not
  8.  * disclose such Confidential Information and shall use it only in
  9.  * accordance with the terms of the license agreement you entered into
  10.  * with Sun.
  11.  * 
  12.  * SUN MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE
  13.  * SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  14.  * IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
  15.  * PURPOSE, OR NON-INFRINGEMENT. SUN SHALL NOT BE LIABLE FOR ANY DAMAGES
  16.  * SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR DISTRIBUTING
  17.  * THIS SOFTWARE OR ITS DERIVATIVES.
  18.  * 
  19.  * CopyrightVersion 1.1_beta
  20.  * 
  21.  */
  22.  
  23. package java.lang;
  24.  
  25. /**
  26.  * Thrown to indicate that the <code>clone</code> method in class 
  27.  * <code>Object</code> has been called to clone an object, but that 
  28.  * the object's class does not implement the <code>Cloneable</code> 
  29.  * interface. 
  30.  * <p>
  31.  * Applications that override the <code>clone</code> method can also 
  32.  * throw this exception to indicate that an object could not or 
  33.  * should not be cloned.
  34.  *
  35.  * @author  unascribed
  36.  * @version 1.3, 01/20/97
  37.  * @see     java.lang.Cloneable
  38.  * @see     java.lang.Object#clone()
  39.  * @since   JDK1.0
  40.  */
  41.  
  42. public
  43. class CloneNotSupportedException extends Exception {
  44.     /**
  45.      * Constructs a <code>CloneNotSupportedException</code> with no 
  46.      * detail message. 
  47.      *
  48.      * @since   JDK1.0
  49.      */
  50.     public CloneNotSupportedException() {
  51.     super();
  52.     }
  53.  
  54.     /**
  55.      * Constructs a <code>CloneNotSupportedException</code> with the 
  56.      * specified detail message. 
  57.      *
  58.      * @param   s   the detail message.
  59.      * @since   JDK1.0
  60.      */
  61.     public CloneNotSupportedException(String s) {
  62.     super(s);
  63.     }
  64. }
  65.