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