public class CloneNotSupportedException extends 异常
clone类方法Object被称为克隆对象,但该对象的类无法实现Cloneable接口。
覆盖clone方法的应用程序也可以抛出此异常以指示对象无法或不应被克隆。
Cloneable , Object.clone() , Serialized Form
| Constructor and Description |
|---|
CloneNotSupportedException()
构造一个没有详细消息的
CloneNotSupportedException 。
|
CloneNotSupportedException(String s)
构造具有
CloneNotSupportedException详细消息的CloneNotSupportedException。
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic CloneNotSupportedException()
CloneNotSupportedException 。
public CloneNotSupportedException(String s)
CloneNotSupportedException详细消息的CloneNotSupportedException。
s - 详细信息。
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.