APIdia Launch Partner
Top Description Fields Constructors
java.lang

public Class CloneNotSupportedException

extends Exception
Class Inheritance

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.

Since
1.0
See Also
java.lang.Cloneable, java.lang.Object#clone()

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor and Description
public
CloneNotSupportedException()

Constructs a CloneNotSupportedException with no detail message.

public
CloneNotSupportedException(String
the detail message.
s
)

Constructs a CloneNotSupportedException with the specified detail message.

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.lang.Exception.serialVersionUID.

Annotations
@Serial

Constructor Detail

CloneNotSupportedExceptionback to summary
public CloneNotSupportedException()

Constructs a CloneNotSupportedException with no detail message.

CloneNotSupportedExceptionback to summary
public CloneNotSupportedException(String s)

Constructs a CloneNotSupportedException with the specified detail message.

Parameters
s:String

the detail message.