public class ActivationException extends 异常
从版本1.4开始,这种异常已被改进以符合通用异常链接机制。 可以在建造时提供并通过公共detail字段访问的“细节异常”现在被称为原因 ,并且可以通过Throwable.getCause()方法以及前述的“传统字段”来访问。
调用方法Throwable.initCause(Throwable)上的一个实例ActivationException总是抛出IllegalStateException 。
| Constructor and Description |
|---|
ActivationException()
构造一个
ActivationException 。
|
ActivationException(String s)
构造具有
ActivationException详细消息的ActivationException。
|
ActivationException(String s, Throwable cause)
构造具有
ActivationException的详细消息和原因的ActivationException。
|
| Modifier and Type | Method and Description |
|---|---|
Throwable |
getCause()
返回此异常的原因。
|
String |
getMessage()
返回详细信息,包括原因的消息(如果有的话)的异常。
|
addSuppressed, fillInStackTrace, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic Throwable detail
该领域早于通用异常链接工具。 Throwable.getCause()方法现在是获取此信息的首选方法。
public ActivationException()
ActivationException 。
public ActivationException(String s)
ActivationException详细消息的ActivationException。
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.