XML for Java Compatibility API 2.0.13

com.ibm.xml.parser
Class TreeTraversalException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--com.ibm.xml.parser.TreeTraversalException
Direct Known Subclasses:
EndTraversalException, ToNextSiblingTraversalException

public class TreeTraversalException
extends java.lang.Exception

XML4J tree traversal exception which signals from a Visitor to the tree traversal algorithm that a correction is requested. Typically, the correction will increase the speed of the traversal due to an optimization condition that is recognized by the Visitor. For example, the MakeDigestVisitor throws this exception when a digest already exists on a given Node, and there is no need to traverse children of this Node. Note that this exception constitutes a request that a traversal algorithm is free to ignore.

Version:
Revision: 95 1.4 src/com/ibm/xml/parser/TreeTraversalException.java, parser, xml4j2, xml4j2_0_13
See Also:
NonRecursivePreorderTreeTraversal.traverse(org.w3c.dom.Node), TreeTraversal.traverse(org.w3c.dom.Node), MakeDigestVisitor, Serialized Form

Constructor Summary
TreeTraversalException()
          Constructor for exception with no detail message.
TreeTraversalException(java.lang.String msg)
          Constructor for exception with detail message.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TreeTraversalException

public TreeTraversalException()
Constructor for exception with no detail message.

TreeTraversalException

public TreeTraversalException(java.lang.String msg)
Constructor for exception with detail message.
Parameters:
msg - The detail message for the exception.

XML for Java Compatibility API 2.0.13