|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
| 上一個類別 下一個類別 | 框架 無框架 | |||||||||
| 摘要: 巢狀 | 欄位 | 建構子 | 方法 | 詳細資訊: 欄位 | 建構子 | 方法 | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.io.IOException
javax.security.sasl.SaslException
public class SaslException
此類別表示在使用 SASL 時所發生的錯誤。
| 建構子摘要 | |
|---|---|
SaslException()
建構一個新的 SaslException 實例。 |
|
SaslException(String detail)
建構帶詳細訊息的新 SaslException 實例。 |
|
SaslException(String detail,
Throwable ex)
建構帶詳細訊息和根異常的新 SaslException 實例。 |
|
| 方法摘要 | |
|---|---|
Throwable |
getCause()
返回此 throwable 的 cause;如果 cause 不存在或未知,則返回 null。 |
Throwable |
initCause(Throwable cause)
將此 throwable 的 cause 初始化為指定值。 |
String |
toString()
返回此異常的字元串表示形式。 |
| 從類別 java.lang.Throwable 繼承的方法 |
|---|
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, printStackTrace, printStackTrace, printStackTrace, setStackTrace |
| 從類別 java.lang.Object 繼承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| 建構子詳細資訊 |
|---|
public SaslException()
public SaslException(String detail)
detail - 套件含異常細節的字元串,可以為 null。Throwable.getMessage()
public SaslException(String detail,
Throwable ex)
detail - 套件含異常細節的字元串,可能為 null。ex - 導致此異常的根異常,可能為 null。Throwable.getMessage(),
getCause()| 方法詳細資訊 |
|---|
public Throwable getCause()
Throwable 複製的描述null。(該 Cause 是導致拋出此 throwable 的throwable。)
此實作返回由一個需要 Throwable 的建構子提供的 cause,或者在創建之後通過 Throwable.initCause(Throwable) 方法進行設置的 cause。雖然通常不需要覆寫此方法,但子類別可以覆寫它,以返回一個通過某些其他方式設置的 cause。這適用於在異常鏈(異常巢狀)機制被加入到 Throwable 之前存在“遺留 Throwable 鏈機制”的情況。注意,不必 覆寫任何 PrintStackTrace 方法,所有方法都調用 getCause 方法來確定 throwable 的 cause。
Throwable 中的 getCausenull。public Throwable initCause(Throwable cause)
Throwable 複製的描述此方法至多可以調用一次。此方法通常從建構子中調用,或者在創建 throwable 後立即調用。如果此 throwable 通過 Throwable.Throwable(Throwable) 或 Throwable.Throwable(String,Throwable) 創建,此方法甚至一次也不能調用。
Throwable 中的 initCausecause - 原因(保存此 cause,以便以後通過 Throwable.getCause() 方法獲取它)。(允許 null 值,指出 cause 是不存在的或是未知的。)
Throwable 實例的參考。public String toString()
Throwable 中的 toStringThrowable.getMessage()
|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
| 上一個類別 下一個類別 | 框架 無框架 | |||||||||
| 摘要: 巢狀 | 欄位 | 建構子 | 方法 | 詳細資訊: 欄位 | 建構子 | 方法 | |||||||||
版權所有 2008 Sun Microsystems, Inc. 保留所有權利。請遵守GNU General Public License, version 2 only。