Packages  This Package  Prev  Next  Index  

§1.29 Class CloneNotSupportedException

public  class  java.lang.CloneNotSupportedException
    extends  java.lang.Exception  (I-§1.30)
{
        // Constructors
    public CloneNotSupportedException();	§1.29.1
    public CloneNotSupportedException(String  s);	§1.29.2
}
Thrown to indicate that the clone method (I-§1.12.2) in class Object has been called to clone an object, but that the object's class does not implement the Cloneable interface (I-§1.22).

Applications that override the clone method can also throw this exception to indicate that an object could not or should not be cloned.


Constructors

CloneNotSupportedException

public CloneNotSupportedException()
Constructs an CloneNotSupportedException with no detail message.

CloneNotSupportedException

public CloneNotSupportedException(String s)
Constructs an CloneNotSupportedException with the specified detail message.
Parameters:
s - the detail message

Packages  This Package  Prev  Next  Index
Java API Document (HTML generated by dkramer on April 22, 1996)
Copyright © 1996 Sun Microsystems, Inc. All rights reserved
Please send any comments or corrections to doug.kramer@sun.com