java.lang
public class CloneNotSupportedException extends Exception
void m() throws CloneNotSupportedException
{
clone();
}
Notice that calling clone() on an array will never produce
this exception, as the VM will always succeed in copying the array, or
cause an OutOfMemoryError first. For example:
void m(int[] array)
{
int[] copy = (int[]) array.clone();
}
UNKNOWN: updated to 1.4
| Constructor Summary | |
|---|---|
| CloneNotSupportedException()
Create an exception without a message. | |
| CloneNotSupportedException(String s)
Create an exception with a message.
| |
Parameters: s the error message