Package java.lang Previous
Previous
Java API
Java API
Index
Index
Next
Next

Class CloneNotSupportedException

Constructors

public  class  java.lang.CloneNotSupportedException
    extends  java.lang.Exception  
{
        // Constructors
    public CloneNotSupportedException();	
    public CloneNotSupportedException(String  s);	
}

Thrown to indicate that the clone method in class Object has been called to clone an object, but that the object's class does not implement the Cloneable interface .

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.

ParameterDescription
s the detail message



Top© 1996 Sun Microsystems, Inc. All rights reserved.