Class NodeTestException

java.lang.Object
java.lang.Throwable
java.lang.Exception
org.custommonkey.xmlunit.NodeTestException
All Implemented Interfaces:
Serializable

public class NodeTestException extends Exception
Thrown by a NodeTest that fails.
See Also:
  • Constructor Details

    • NodeTestException

      public NodeTestException(String message, Node node)
      Constructor for specific node and message
      Parameters:
      message - exception message
      node - node the failure applies to
    • NodeTestException

      public NodeTestException(String message)
      Constructor for message only
      Parameters:
      message - exception message
  • Method Details

    • hasNode

      public boolean hasNode()
      Returns:
      true if a node was passed to constructor
    • getNode

      public Node getNode()
      Returns:
      the node passed to constructor, or null if no node was passed
    • getMessage

      public String getMessage()
      Overrides:
      getMessage in class Throwable
      Returns:
      the exception message and node information if available