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
public class ValueMatcherException
- extends RuntimeException
Exception that may be thrown by ValueMatcher subclasses to provide more detail on why matches method failed.
- Author:
- Duncan Mackinder
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
ValueMatcherException
public ValueMatcherException(String message,
String expected,
String actual)
- Create new ValueMatcherException
- Parameters:
message - description of exceptionexpected - value expected by ValueMatcheractual - value being tested by ValueMatcher
ValueMatcherException
public ValueMatcherException(String message,
Throwable cause,
String expected,
String actual)
- Create new ValueMatcherException
- Parameters:
message - description of exceptioncause - cause of ValueMatcherExceptionexpected - value expected by ValueMatcheractual - value being tested by ValueMatcher
getExpected
public String getExpected()
- Returns:
- the expected value
getActual
public String getActual()
- Returns:
- the actual value
Copyright © 2014. All Rights Reserved.