javax.imageio.metadata
public class: IIOInvalidTreeException [javadoc |
source]
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
javax.imageio.IIOException
javax.imageio.metadata.IIOInvalidTreeException
All Implemented Interfaces:
Serializable
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.
| Field Summary |
|---|
| protected Node | offendingNode | The Node that led to the parsing error, or
null. |
| Constructor: |
public IIOInvalidTreeException(String message,
Node offendingNode) {
super(message);
this.offendingNode = 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.
|
public IIOInvalidTreeException(String message,
Throwable cause,
Node offendingNode) {
super(message, cause);
this.offendingNode = 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 from javax.imageio.metadata.IIOInvalidTreeException Summary: |
|---|
|
getOffendingNode |
| Methods from java.lang.Throwable: |
|---|
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getStackTraceDepth, getStackTraceElement, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods from java.lang.Object: |
|---|
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method from javax.imageio.metadata.IIOInvalidTreeException Detail: |
public Node getOffendingNode() {
return offendingNode;
}
Returns the Node that caused the error in parsing. |