- java.lang.Object
- 
- java.lang.Throwable
- 
- java.lang.Exception
- 
- java.io.IOException
- 
- javax.imageio.IIOException
- 
- javax.imageio.metadata.IIOInvalidTreeException
 
 
 
 
 
- 
- All Implemented Interfaces:
- Serializable
 
 public class IIOInvalidTreeException extends IIOException AnIIOInvalidTreeExceptionis thrown when an attempt by anIIOMetadataobject to parse a tree ofIIOMetadataNodes 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 bygetOffendingNodeshould merely be considered as a clue to the actual nature of the problem.
- 
- 
Field SummaryFields Modifier and Type Field Description protected NodeoffendingNodeTheNodethat led to the parsing error, ornull.
 - 
Constructor SummaryConstructors Constructor Description IIOInvalidTreeException(String message, Throwable cause, Node offendingNode)Constructs anIIOInvalidTreeExceptionwith a message string, a reference to an exception that caused this exception, and a reference to theNodethat caused the parsing error.IIOInvalidTreeException(String message, Node offendingNode)Constructs anIIOInvalidTreeExceptionwith a message string and a reference to theNodethat caused the parsing error.
 - 
Method SummaryModifier and Type Method Description NodegetOffendingNode()Returns theNodethat caused the error in parsing.- 
Methods declared in class java.lang.ThrowableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
- 
 
- 
- 
- 
Field Detail- 
offendingNodeprotected Node offendingNode TheNodethat led to the parsing error, ornull.
 
- 
 - 
Constructor Detail- 
IIOInvalidTreeExceptionpublic IIOInvalidTreeException(String message, Node offendingNode) Constructs anIIOInvalidTreeExceptionwith a message string and a reference to theNodethat caused the parsing error.- Parameters:
- message- a- Stringcontaining the reason for the parsing failure.
- offendingNode- the DOM- Nodethat caused the exception, or- null.
 
 - 
IIOInvalidTreeExceptionpublic IIOInvalidTreeException(String message, Throwable cause, Node offendingNode) Constructs anIIOInvalidTreeExceptionwith a message string, a reference to an exception that caused this exception, and a reference to theNodethat caused the parsing error.- Parameters:
- message- a- Stringcontaining the reason for the parsing failure.
- cause- the- Throwable(- Erroror- Exception) that caused this exception to occur, or- null.
- offendingNode- the DOM- Nodethat caused the exception, or- null.
 
 
- 
 - 
Method Detail- 
getOffendingNodepublic Node getOffendingNode() Returns theNodethat caused the error in parsing.- Returns:
- the offending Node.
 
 
- 
 
-