Package org.custommonkey.xmlunit
Class NodeTestException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.custommonkey.xmlunit.NodeTestException
- All Implemented Interfaces:
Serializable
Thrown by a NodeTest that fails.
- See Also:
-
Constructor Summary
ConstructorDescriptionNodeTestException
(String message) Constructor for message onlyNodeTestException
(String message, Node node) Constructor for specific node and message -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
NodeTestException
Constructor for specific node and message- Parameters:
message
- exception messagenode
- node the failure applies to
-
NodeTestException
Constructor for message only- Parameters:
message
- exception message
-
-
Method Details
-
hasNode
public boolean hasNode()- Returns:
- true if a node was passed to constructor
-
getNode
- Returns:
- the node passed to constructor, or null if no node was passed
-
getMessage
- Overrides:
getMessage
in classThrowable
- Returns:
- the exception message and node information if available
-