|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.rmi.activation.ActivationException
public class ActivationException
激活接口所使用的一般异常。
从版本 1.4 开始,已对此异常作出改进,以符合通用异常链机制。可在构造时提供并通过公共 detail 字段访问的“详细的异常”现在称为 cause,该异常也能通过 Throwable.getCause() 方法以及前述的“遗留字段”访问。
在 ActivationException 的一个实例上调用方法 Throwable.initCause(Throwable) 总是抛出 IllegalStateException。
| 字段摘要 | |
|---|---|
Throwable |
detail
激活异常的原因。 |
| 构造方法摘要 | |
|---|---|
ActivationException()
构造一个 ActivationException。 |
|
ActivationException(String s)
构造带指定详细消息的 ActivationException。 |
|
ActivationException(String s,
Throwable cause)
构造带指定详细消息和原因的 ActivationException。 |
|
| 方法摘要 | |
|---|---|
Throwable |
getCause()
返回此异常的原因。 |
String |
getMessage()
返回包含来自此异常的原因(如果有)的消息的详细消息。 |
| 从类 java.lang.Throwable 继承的方法 |
|---|
fillInStackTrace, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| 字段详细信息 |
|---|
public Throwable detail
此字段早于通用异常链设施。Throwable.getCause() 方法现在是获取此信息的首选方法。
| 构造方法详细信息 |
|---|
public ActivationException()
ActivationException。
public ActivationException(String s)
ActivationException。
s - 详细消息
public ActivationException(String s,
Throwable cause)
ActivationException。此构造方法设置 detail 字段为给定的 Throwable。
s - 详细消息cause - 原因| 方法详细信息 |
|---|
public String getMessage()
Throwable 中的 getMessagepublic Throwable getCause()
detail 字段的值。
Throwable 中的 getCause
|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。另请参阅文档重新分发政策。