javax.imageio.metadata
Class IIOInvalidTreeException

java.lang.Object sample code for java.lang.Object definition code for java.lang.Object 
  extended by java.lang.Throwable sample code for java.lang.Throwable definition code for java.lang.Throwable 
      extended by java.lang.Exception sample code for java.lang.Exception definition code for java.lang.Exception 
          extended by java.io.IOException sample code for java.io.IOException definition code for java.io.IOException 
              extended by javax.imageio.IIOException sample code for javax.imageio.IIOException definition code for javax.imageio.IIOException 
                  extended by javax.imageio.metadata.IIOInvalidTreeException
All Implemented Interfaces:
Serializable sample code for java.io.Serializable definition code for java.io.Serializable

public class IIOInvalidTreeException
extends IIOException sample code for javax.imageio.IIOException definition code for javax.imageio.IIOException

An IIOInvalidTreeException is thrown when an attempt by an IIOMetadata object to parse a tree of IIOMetadataNodes fails. The node that led to the parsing error may be stored. As with any parsing error, the actual error may occur at a different point that that where it is detected. The node returned by getOffendingNode should merely be considered as a clue to the actual nature of the problem.

See Also:
IIOMetadata.setFromTree(java.lang.String, org.w3c.dom.Node) sample code for javax.imageio.metadata.IIOMetadata.setFromTree(java.lang.String, org.w3c.dom.Node) definition code for javax.imageio.metadata.IIOMetadata.setFromTree(java.lang.String, org.w3c.dom.Node) , IIOMetadata.mergeTree(java.lang.String, org.w3c.dom.Node) sample code for javax.imageio.metadata.IIOMetadata.mergeTree(java.lang.String, org.w3c.dom.Node) definition code for javax.imageio.metadata.IIOMetadata.mergeTree(java.lang.String, org.w3c.dom.Node) , IIOMetadataNode sample code for javax.imageio.metadata.IIOMetadataNode definition code for javax.imageio.metadata.IIOMetadataNode , Serialized Form

Field Summary
protected  Node sample code for org.w3c.dom.Node definition code for org.w3c.dom.Node offendingNode sample code for javax.imageio.metadata.IIOInvalidTreeException.offendingNode definition code for javax.imageio.metadata.IIOInvalidTreeException.offendingNode
          The Node that led to the parsing error, or null.
 
Constructor Summary
IIOInvalidTreeException sample code for javax.imageio.metadata.IIOInvalidTreeException.IIOInvalidTreeException(java.lang.String, org.w3c.dom.Node) definition code for javax.imageio.metadata.IIOInvalidTreeException.IIOInvalidTreeException(java.lang.String, org.w3c.dom.Node) (String sample code for java.lang.String definition code for java.lang.String  message, Node sample code for org.w3c.dom.Node definition code for org.w3c.dom.Node  offendingNode)
          Constructs an IIOInvalidTreeException with a message string and a reference to the Node that caused the parsing error.
IIOInvalidTreeException sample code for javax.imageio.metadata.IIOInvalidTreeException.IIOInvalidTreeException(java.lang.String, java.lang.Throwable, org.w3c.dom.Node) definition code for javax.imageio.metadata.IIOInvalidTreeException.IIOInvalidTreeException(java.lang.String, java.lang.Throwable, org.w3c.dom.Node) (String sample code for java.lang.String definition code for java.lang.String  message, Throwable sample code for java.lang.Throwable definition code for java.lang.Throwable  cause, Node sample code for org.w3c.dom.Node definition code for org.w3c.dom.Node  offendingNode)
          Constructs an IIOInvalidTreeException with a message string, a reference to an exception that caused this exception, and a reference to the Node that caused the parsing error.
 
Method Summary
 Node sample code for org.w3c.dom.Node definition code for org.w3c.dom.Node getOffendingNode sample code for javax.imageio.metadata.IIOInvalidTreeException.getOffendingNode() definition code for javax.imageio.metadata.IIOInvalidTreeException.getOffendingNode() ()
          Returns the Node that caused the error in parsing.
 
Methods inherited from class java.lang.Throwable sample code for java.lang.Throwable definition code for java.lang.Throwable
fillInStackTrace sample code for java.lang.Throwable.fillInStackTrace() definition code for java.lang.Throwable.fillInStackTrace() , getCause sample code for java.lang.Throwable.getCause() definition code for java.lang.Throwable.getCause() , getLocalizedMessage sample code for java.lang.Throwable.getLocalizedMessage() definition code for java.lang.Throwable.getLocalizedMessage() , getMessage sample code for java.lang.Throwable.getMessage() definition code for java.lang.Throwable.getMessage() , getStackTrace sample code for java.lang.Throwable.getStackTrace() definition code for java.lang.Throwable.getStackTrace() , initCause sample code for java.lang.Throwable.initCause(java.lang.Throwable) definition code for java.lang.Throwable.initCause(java.lang.Throwable) , printStackTrace sample code for java.lang.Throwable.printStackTrace() definition code for java.lang.Throwable.printStackTrace() , printStackTrace sample code for java.lang.Throwable.printStackTrace(java.io.PrintStream) definition code for java.lang.Throwable.printStackTrace(java.io.PrintStream) , printStackTrace sample code for java.lang.Throwable.printStackTrace(java.io.PrintWriter) definition code for java.lang.Throwable.printStackTrace(java.io.PrintWriter) , setStackTrace sample code for java.lang.Throwable.setStackTrace(java.lang.StackTraceElement[]) definition code for java.lang.Throwable.setStackTrace(java.lang.StackTraceElement[]) , toString sample code for java.lang.Throwable.toString() definition code for java.lang.Throwable.toString()
 
Methods inherited from class java.lang.Object sample code for java.lang.Object definition code for java.lang.Object
clone sample code for java.lang.Object.clone() definition code for java.lang.Object.clone() , equals sample code for java.lang.Object.equals(java.lang.Object) definition code for java.lang.Object.equals(java.lang.Object) , finalize sample code for java.lang.Object.finalize() definition code for java.lang.Object.finalize() , getClass sample code for java.lang.Object.getClass() definition code for java.lang.Object.getClass() , hashCode sample code for java.lang.Object.hashCode() definition code for java.lang.Object.hashCode() , notify sample code for java.lang.Object.notify() definition code for java.lang.Object.notify() , notifyAll sample code for java.lang.Object.notifyAll() definition code for java.lang.Object.notifyAll() , wait sample code for java.lang.Object.wait() definition code for java.lang.Object.wait() , wait sample code for java.lang.Object.wait(long) definition code for java.lang.Object.wait(long) , wait sample code for java.lang.Object.wait(long, int) definition code for java.lang.Object.wait(long, int)
 

Field Detail

offendingNode sample code for javax.imageio.metadata.IIOInvalidTreeException.offendingNode

protected Node sample code for org.w3c.dom.Node definition code for org.w3c.dom.Node  offendingNode
The Node that led to the parsing error, or null.

Constructor Detail

IIOInvalidTreeException sample code for javax.imageio.metadata.IIOInvalidTreeException(java.lang.String, org.w3c.dom.Node) definition code for javax.imageio.metadata.IIOInvalidTreeException(java.lang.String, org.w3c.dom.Node)

public IIOInvalidTreeException(String sample code for java.lang.String definition code for java.lang.String  message,
                               Node sample code for org.w3c.dom.Node definition code for org.w3c.dom.Node  offendingNode)
Constructs an IIOInvalidTreeException with a message string and a reference to the Node that caused the parsing error.

Parameters:
message - a String containing the reason for the parsing failure.
offendingNode - the DOM Node that caused the exception, or null.

IIOInvalidTreeException sample code for javax.imageio.metadata.IIOInvalidTreeException(java.lang.String, java.lang.Throwable, org.w3c.dom.Node) definition code for javax.imageio.metadata.IIOInvalidTreeException(java.lang.String, java.lang.Throwable, org.w3c.dom.Node)

public IIOInvalidTreeException(String sample code for java.lang.String definition code for java.lang.String  message,
                               Throwable sample code for java.lang.Throwable definition code for java.lang.Throwable  cause,
                               Node sample code for org.w3c.dom.Node definition code for org.w3c.dom.Node  offendingNode)
Constructs an IIOInvalidTreeException with a message string, a reference to an exception that caused this exception, and a reference to the Node that caused the parsing error.

Parameters:
message - a String containing the reason for the parsing failure.
cause - the Throwable (Error or Exception) that caused this exception to occur, or null.
offendingNode - the DOM Node that caused the exception, or null.
Method Detail

getOffendingNode sample code for javax.imageio.metadata.IIOInvalidTreeException.getOffendingNode() definition code for javax.imageio.metadata.IIOInvalidTreeException.getOffendingNode()

public Node sample code for org.w3c.dom.Node definition code for org.w3c.dom.Node  getOffendingNode()
Returns the Node that caused the error in parsing.

Returns:
the offending Node.