Top Description Fields Constructors Methods
javax.imageio.metadata

public Class IIOInvalidTreeException

extends IIOException
Class Inheritance
Imports
java.io.Serial, javax.imageio.IIOException, org.w3c.dom.Node

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, IIOMetadata#mergeTree, IIOMetadataNode

Field Summary

Modifier and TypeField and Description
protected Node
offendingNode

The Node that led to the parsing error, or null.

private static final long
serialVersionUID

Hides javax.imageio.IIOException.serialVersionUID.

Use serialVersionUID from JDK 9 for interoperability.

Constructor Summary

AccessConstructor and Description
public
IIOInvalidTreeException(String
a String containing the reason for the parsing failure.
message
,
Node
the DOM Node that caused the exception, or null.
offendingNode
)

Constructs an IIOInvalidTreeException with a message string and a reference to the Node that caused the parsing error.

public
IIOInvalidTreeException(String
a String containing the reason for the parsing failure.
message
,
Throwable
the Throwable (Error or Exception) that caused this exception to occur, or null.
cause
,
Node
the DOM Node that caused the exception, or null.
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

Modifier and TypeMethod and Description
public Node

Returns:

the offending Node.
getOffendingNode
()

Returns the Node that caused the error in parsing.

Field Detail

offendingNodeback to summary
protected Node offendingNode

The Node that led to the parsing error, or null.

Annotations
@SuppressWarnings:serial
serialVersionUIDback to summary
private static final long serialVersionUID

Hides javax.imageio.IIOException.serialVersionUID.

Use serialVersionUID from JDK 9 for interoperability.

Annotations
@Serial

Constructor Detail

IIOInvalidTreeExceptionback to summary
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:String

a String containing the reason for the parsing failure.

offendingNode:Node

the DOM Node that caused the exception, or null.

IIOInvalidTreeExceptionback to summary
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:String

a String containing the reason for the parsing failure.

cause:Throwable

the Throwable (Error or Exception) that caused this exception to occur, or null.

offendingNode:Node

the DOM Node that caused the exception, or null.

Method Detail

getOffendingNodeback to summary
public Node getOffendingNode()

Returns the Node that caused the error in parsing.

Returns:Node

the offending Node.