org.custommonkey.xmlunit

Class NodeTestException

public class NodeTestException extends Exception

Thrown by a NodeTest that fails.
Examples and more at xmlunit.sourceforge.net

See Also: NodeTest

Constructor Summary
NodeTestException(String message, Node node)
Constructor for specific node and message
NodeTestException(String message)
Constructor for message only
Method Summary
StringgetMessage()
NodegetNode()
booleanhasNode()

Constructor Detail

NodeTestException

public NodeTestException(String message, Node node)
Constructor for specific node and message

Parameters: message node

NodeTestException

public NodeTestException(String message)
Constructor for message only

Parameters: message

Method Detail

getMessage

public String getMessage()

Returns: the exception message and node information if available

getNode

public Node getNode()

Returns: the node passed to constructor, or null if no node was passed

hasNode

public boolean hasNode()

Returns: true if a node was passed to constructor