Package org.skyscreamer.jsonassert
Class ValueMatcherException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.skyscreamer.jsonassert.ValueMatcherException
- All Implemented Interfaces:
Serializable
Exception that may be thrown by ValueMatcher subclasses to provide more detail on why matches method failed.
- Author:
- Duncan Mackinder
- See Also:
-
Constructor Summary
ConstructorDescriptionValueMatcherException
(String message, String expected, String actual) Create new ValueMatcherExceptionValueMatcherException
(String message, Throwable cause, String expected, String actual) Create new ValueMatcherException -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ValueMatcherException
Create new ValueMatcherException- Parameters:
message
- description of exceptionexpected
- value expected by ValueMatcheractual
- value being tested by ValueMatcher
-
ValueMatcherException
Create new ValueMatcherException- Parameters:
message
- description of exceptioncause
- cause of ValueMatcherExceptionexpected
- value expected by ValueMatcheractual
- value being tested by ValueMatcher
-
-
Method Details
-
getExpected
- Returns:
- the expected value
-
getActual
- Returns:
- the actual value
-