KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > java > lang > CloneNotSupportedException


1 /*
2  * @(#)CloneNotSupportedException.java 1.11 03/12/19
3  *
4  * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
5  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
6  */

7
8 package java.lang;
9
10 /**
11  * Thrown to indicate that the <code>clone</code> method in class
12  * <code>Object</code> has been called to clone an object, but that
13  * the object's class does not implement the <code>Cloneable</code>
14  * interface.
15  * <p>
16  * Applications that override the <code>clone</code> method can also
17  * throw this exception to indicate that an object could not or
18  * should not be cloned.
19  *
20  * @author unascribed
21  * @version 1.11, 12/19/03
22  * @see java.lang.Cloneable
23  * @see java.lang.Object#clone()
24  * @since JDK1.0
25  */

26
27 public
28 class CloneNotSupportedException extends Exception JavaDoc {
29     /**
30      * Constructs a <code>CloneNotSupportedException</code> with no
31      * detail message.
32      */

33     public CloneNotSupportedException() {
34     super();
35     }
36
37     /**
38      * Constructs a <code>CloneNotSupportedException</code> with the
39      * specified detail message.
40      *
41      * @param s the detail message.
42      */

43     public CloneNotSupportedException(String JavaDoc s) {
44     super(s);
45     }
46 }
47
Popular Tags