Package java.lang
Class CloneNotSupportedException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.CloneNotSupportedException
-
- All Implemented Interfaces:
Serializable
public class CloneNotSupportedException extends Exception
Thrown when a program attempts to clone an object which does not support theCloneableinterface.- See Also:
Cloneable, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CloneNotSupportedException()Constructs 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 java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
CloneNotSupportedException
public CloneNotSupportedException()
Constructs a newCloneNotSupportedExceptionthat includes the current stack trace.
-
CloneNotSupportedException
public CloneNotSupportedException(String detailMessage)
Constructs a newCloneNotSupportedExceptionwith the current stack trace and the specified detail message.- Parameters:
detailMessage- the detail message for this exception.
-
-