Class CloneNotSupportedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.CloneNotSupportedException
Thrown when a program attempts to clone an object which does not support the
Cloneable interface.
See also
- Cloneable
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a newCloneNotSupportedExceptionthat includes the current stack trace.CloneNotSupportedException(String detailMessage) Constructs a newCloneNotSupportedExceptionwith the current stack trace and the specified detail message. -
Method Summary
Methods inherited from class Throwable
addSuppressed, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, setStackTrace, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
CloneNotSupportedException
public CloneNotSupportedException()Constructs a newCloneNotSupportedExceptionthat includes the current stack trace. -
CloneNotSupportedException
Constructs a new
CloneNotSupportedExceptionwith the current stack trace and the specified detail message.Parameters
detailMessage: the detail message for this exception.
-