|
JavaTM 2 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 2 Platform Standard Ed. 6 |
|||||||||
| 上一個類別 下一個類別 | 框架 無框架 | |||||||||
| 摘要: 巢狀 | 欄位 | 建構子 | 方法 | 詳細資訊: 欄位 | 建構子 | 方法 | |||||||||
版權所有 2008 Sun Microsystems, Inc. 保留所有權利。請遵守GNU General Public License, version 2 only。