JavaTM 2 Platform
Standard Ed. 6

javax.xml.crypto.dsig
類別 TransformException

java.lang.Object
  繼承者 java.lang.Throwable
      繼承者 java.lang.Exception
          繼承者 javax.xml.crypto.dsig.TransformException
所有已實作的介面:
Serializable

public class TransformException
extends Exception

指示執行轉換演算法時出現異常的異常條件。

TransformException 可以包含一個 cause:另一個導致拋出此 TransformException 的 throwable。

從以下版本開始:
1.6
另請參見:
Transform.transform(javax.xml.crypto.Data, javax.xml.crypto.XMLCryptoContext), 序列化表格

建構子摘要
TransformException()
          建構用 null 作為其詳細訊息的新 TransformException
TransformException(String message)
          建構帶有指定詳細訊息的新 TransformException
TransformException(String message, Throwable cause)
          建構帶指定詳細訊息和 cause 的新 TransformException
TransformException(Throwable cause)
          建構帶指定的 cause 和詳細訊息 (cause==null ? null :cause.toString()) 的新 TransformException(它通常包含 cause 的類別和詳細訊息)。
 
方法摘要
 Throwable getCause()
          返回此 TransformException 的 cause,如果 cause 不存在或未知,則返回 null
 void printStackTrace()
          將此 TransformException、它的追蹤 (backtrace) 和 cause 的追蹤列印到標準錯誤串流中。
 void printStackTrace(PrintStream s)
          將此 TransformException、它的追蹤和 cause 的追蹤列印到指定的列印串流中。
 void printStackTrace(PrintWriter s)
          將此 TransformException、它的追蹤和 cause 的追蹤列印到指定的列印編寫器。
 
從類別 java.lang.Throwable 繼承的方法
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, initCause, setStackTrace, toString
 
從類別 java.lang.Object 繼承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

建構子詳細資訊

TransformException

public TransformException()
建構用 null 作為其詳細訊息的新 TransformException


TransformException

public TransformException(String message)
建構帶有指定詳細訊息的新 TransformException

參數:
message - 詳細訊息

TransformException

public TransformException(String message,
                          Throwable cause)
建構帶指定詳細訊息和 cause 的新 TransformException

注意,與 cause 相關的詳細訊息不是自動合併到這個異常的詳細訊息中的。

參數:
message - 詳細訊息
cause - cause(允許使用 null 值,指出 cause 是不存在的或是未知的。)

TransformException

public TransformException(Throwable cause)
建構帶指定的 cause 和詳細訊息 (cause==null ? null :cause.toString()) 的新 TransformException(它通常包含 cause 的類別和詳細訊息)。

參數:
cause - cause(允許為 null 值,指出 cause 不存在或未知。)
方法詳細資訊

getCause

public Throwable getCause()
返回此 TransformException 的 cause,如果 cause 不存在或未知,則返回 null。(cause 是導致拋出此 TransformException 的 throwable。)

覆寫:
類別 Throwable 中的 getCause
返回:
導致拋出此 TransformException 的 cause,如果 cause 不存在或未知,則返回 null

printStackTrace

public void printStackTrace()
將此 TransformException、它的追蹤 (backtrace) 和 cause 的追蹤列印到標準錯誤串流中。

覆寫:
類別 Throwable 中的 printStackTrace

printStackTrace

public void printStackTrace(PrintStream s)
將此 TransformException、它的追蹤和 cause 的追蹤列印到指定的列印串流中。

覆寫:
類別 Throwable 中的 printStackTrace
參數:
s - 用於輸出的 PrintStream

printStackTrace

public void printStackTrace(PrintWriter s)
將此 TransformException、它的追蹤和 cause 的追蹤列印到指定的列印編寫器。

覆寫:
類別 Throwable 中的 printStackTrace
參數:
s - 用於輸出的 PrintWriter

JavaTM 2 Platform
Standard Ed. 6

提交錯誤或意見

版權所有 2008 Sun Microsystems, Inc. 保留所有權利。請遵守GNU General Public License, version 2 only