Name

CloneNotSupportedException

Synopsis

Signals that the clone( ) method has been called for an object of a class that does not implement the Cloneable interface.

java.lang.CloneNotSupportedException

Figure 10-15. java.lang.CloneNotSupportedException

public class CloneNotSupportedException extends Exception {
// Public Constructors
     public CloneNotSupportedException( );  
     public CloneNotSupportedException(String s);  
}

Thrown By

Enum.clone( ), Object.clone( ), java.security.MessageDigest.clone( ), java.security.MessageDigestSpi.clone( ), java.security.Signature.clone( ), java.security.SignatureSpi.clone( ), java.util.AbstractMap.clone( ), java.util.EnumMap.clone( ), java.util.EnumSet.clone( ), javax.crypto.Mac.clone( ), javax.crypto.MacSpi.clone( )

Get Java in a Nutshell, 5th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.