public class ServerCloneException extends CloneNotSupportedException
ServerCloneException
是如果一个
UnicastRemoteObject
克隆过程中发生远程
在1.4版本中,该异常已被更新以符合通用异常链机制。“嵌套异常”,可以在施工时提供通过公共detail
领域现在被称为原因访问,并可以通过Throwable.getCause()
方法访问,以及前述的“传统领域。”
调用方法Throwable.initCause(Throwable)
对ServerCloneException
实例总是IllegalStateException
。
UnicastRemoteObject.clone()
,
Serialized Form
Constructor and Description |
---|
ServerCloneException(String s)
创建一个指定详细信息的
ServerCloneException 。
|
ServerCloneException(String s, 异常 cause)
创建一个指定详细信息和原因
ServerCloneException 。
|
Modifier and Type | Method and Description |
---|---|
Throwable |
getCause()
返回此异常的原因。
|
String |
getMessage()
返回详细信息,包括此异常的原因的消息,如果有的话。
|
addSuppressed, fillInStackTrace, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public 异常 detail
这场早于通用异常链设施。现在的Throwable.getCause()
方法获取这一信息的首选方式。
public ServerCloneException(String s)
ServerCloneException
。
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.