Most visited

Recently visited

Added in API level 1

CloneNotSupportedException

public class CloneNotSupportedException
extends 异常

java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ java.lang.CloneNotSupportedException


抛出,表明该 clone类方法 Object被称为克隆对象,但该对象的类无法实现 Cloneable接口。

覆盖 clone方法的应用程序也可以引发此异常,以指示不能或不应克隆对象。

也可以看看:

Summary

Public constructors

CloneNotSupportedException()

构造一个没有详细信息的 CloneNotSupportedException

CloneNotSupportedException(String s)

用指定的详细信息构造一个 CloneNotSupportedException

Inherited methods

From class java.lang.Throwable
From class java.lang.Object

Public constructors

CloneNotSupportedException

Added in API level 1
CloneNotSupportedException ()

构造一个没有详细信息的 CloneNotSupportedException

CloneNotSupportedException

Added in API level 1
CloneNotSupportedException (String s)

用指定的详细信息构造一个 CloneNotSupportedException

Parameters
s String: the detail message.

Hooray!