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
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
-
-
Constructor Summary
Constructors Constructor Description ValueMatcherException(String message, String expected, String actual)
Create new ValueMatcherExceptionValueMatcherException(String message, Throwable cause, String expected, String actual)
Create new ValueMatcherException
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getActual()
String
getExpected()
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
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
-
-