Package java.lang |
![]() Previous |
![]() Java API |
![]() Index |
![]() Next |
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.
public CloneNotSupportedException()Constructs an CloneNotSupportedException with no detail message.
public CloneNotSupportedException(String s)Constructs an CloneNotSupportedException with the specified detail message.
Parameter Description s the detail message