Class IIOInvalidTreeException
- 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
An IIOInvalidTreeException
is thrown when an attempt by an IIOMetadata
object to parse a tree of IIOMetadataNode
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 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)
,IIOMetadata.mergeTree(java.lang.String, org.w3c.dom.Node)
,IIOMetadataNode
, Serialized Form
Fields
Modifier and Type | Field | Description |
---|---|---|
protected Node | offendingNode | The |
Constructors
Constructor | Description |
---|---|
IIOInvalidTreeException(String message,
Throwable cause,
Node offendingNode) | Constructs an |
IIOInvalidTreeException(String message,
Node offendingNode) | Constructs an |
Methods
Modifier and Type | Method | Description |
---|---|---|
Node | getOffendingNode() | Returns the |
Methods declared in class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
Methods declared in class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Fields
offendingNode
protected Node offendingNode
The Node
that led to the parsing error, or null
.
Constructors
IIOInvalidTreeException
public IIOInvalidTreeException(String message, Node offendingNode)
Constructs an IIOInvalidTreeException
with a message string and a reference to the Node
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 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
- 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
.
Methods
getOffendingNode
public Node getOffendingNode()
Returns the Node
that caused the error in parsing.
- Returns:
- the offending
Node
.
© 1993, 2020, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/javax/imageio/metadata/IIOInvalidTreeException.html