- 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
AnIIOInvalidTreeException
is thrown when an attempt by anIIOMetadata
object to parse a tree ofIIOMetadataNode
s 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 bygetOffendingNode
should merely be considered as a clue to the actual nature of the problem.
-
-
Field Summary
Fields Modifier and Type Field and Description protected Node
offendingNode
TheNode
that led to the parsing error, ornull
.
-
Constructor Summary
Constructors Constructor and Description IIOInvalidTreeException(String message, Node offendingNode)
Constructs anIIOInvalidTreeException
with a message string and a reference to theNode
that caused the parsing error.IIOInvalidTreeException(String message, Throwable cause, Node offendingNode)
Constructs anIIOInvalidTreeException
with a message string, a reference to an exception that caused this exception, and a reference to theNode
that caused the parsing error.
-
Method Summary
Methods Modifier and Type Method and Description Node
getOffendingNode()
Returns theNode
that caused the error in parsing.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Field Detail
-
offendingNode
protected Node offendingNode
TheNode
that led to the parsing error, ornull
.
-
-
Constructor Detail
-
IIOInvalidTreeException
public IIOInvalidTreeException(String message, Node offendingNode)
Constructs anIIOInvalidTreeException
with a message string and a reference to theNode
that caused the parsing error.- Parameters:
message
- aString
containing the reason for the parsing failure.offendingNode
- the DOMNode
that caused the exception, ornull
.
-
IIOInvalidTreeException
public IIOInvalidTreeException(String message, Throwable cause, Node offendingNode)
Constructs anIIOInvalidTreeException
with a message string, a reference to an exception that caused this exception, and a reference to theNode
that caused the parsing error.- Parameters:
message
- aString
containing the reason for the parsing failure.cause
- theThrowable
(Error
orException
) that caused this exception to occur, ornull
.offendingNode
- the DOMNode
that caused the exception, ornull
.
-
-
Method Detail
-
getOffendingNode
public Node getOffendingNode()
Returns theNode
that caused the error in parsing.- Returns:
- the offending
Node
.
-
-
Document created the 11/06/2005, last modified the 04/03/2020
Source of the printed document:https://www.gaudry.be/en/java-api-rf-javax/imageio/metadata/iioinvalidtreeexception.html
The infobrol is a personal site whose content is my sole responsibility. The text is available under CreativeCommons license (BY-NC-SA). More info on the terms of use and the author.
References
These references and links indicate documents consulted during the writing of this page, or which may provide additional information, but the authors of these sources can not be held responsible for the content of this page.
The author This site is solely responsible for the way in which the various concepts, and the freedoms that are taken with the reference works, are presented here. Remember that you must cross multiple source information to reduce the risk of errors.