JavaTM 2 Platform
Standard Ed. 6

javax.imageio.metadata
類別 IIOInvalidTreeException

java.lang.Object
  繼承者 java.lang.Throwable
      繼承者 java.lang.Exception
          繼承者 java.io.IOException
              繼承者 javax.imageio.IIOException
                  繼承者 javax.imageio.metadata.IIOInvalidTreeException
所有已實作的介面:
Serializable

public class IIOInvalidTreeException
extends IIOException

當 IIOMetadata 物件嘗試解析 IIOMetadataNode 的階層樹失敗時,將拋出 IIOInvalidTreeException。導致解析錯誤的節點可能被存儲起來。與任何解析錯誤一樣,實際錯誤發生點可能不同於檢測到的錯誤發生點。getOffendingNode 返回的節點只能視為問題實質的線索。

另請參見:
IIOMetadata.setFromTree(java.lang.String, org.w3c.dom.Node), IIOMetadata.mergeTree(java.lang.String, org.w3c.dom.Node), IIOMetadataNode, 序列化表格

欄位摘要
protected  Node offendingNode
          導致解析錯誤的 Node,或 null。
 
建構子摘要
IIOInvalidTreeException(String message, Node offendingNode)
          建構一個 IIOInvalidTreeException,使其具有訊息字元串和對導致解析錯誤的 Node 的參考。
IIOInvalidTreeException(String message, Throwable cause, Node offendingNode)
          建構一個 IIOInvalidTreeException,使其具有訊息字元串、對導致此異常的異常的參考和導致解析錯誤的 Node 的參考。
 
方法摘要
 Node getOffendingNode()
          返回導致解析錯誤的 Node。
 
從類別 java.lang.Throwable 繼承的方法
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
從類別 java.lang.Object 繼承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

欄位詳細資訊

offendingNode

protected Node offendingNode
導致解析錯誤的 Node,或 null。

建構子詳細資訊

IIOInvalidTreeException

public IIOInvalidTreeException(String message,
                               Node offendingNode)
建構一個 IIOInvalidTreeException,使其具有訊息字元串和對導致解析錯誤的 Node 的參考。

參數:
message - 套件含解析錯誤的原因的 String。
offendingNode - 導致異常的 DOM Node,或 null。

IIOInvalidTreeException

public IIOInvalidTreeException(String message,
                               Throwable cause,
                               Node offendingNode)
建構一個 IIOInvalidTreeException,使其具有訊息字元串、對導致此異常的異常的參考和導致解析錯誤的 Node 的參考。

參數:
message - 套件含解析錯誤的原因的 String。
cause - 導致發生此異常的 Throwable(Error 或 Exception),或 null。
offendingNode - 導致異常的 DOM Node,或 null。
方法詳細資訊

getOffendingNode

public Node getOffendingNode()
返回導致解析錯誤的 Node。

返回:
損壞的 Node。

JavaTM 2 Platform
Standard Ed. 6

提交錯誤或意見

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