Class 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:
  • Constructor Details

    • ValueMatcherException

      public ValueMatcherException(String message, String expected, String actual)
      Create new ValueMatcherException
      Parameters:
      message - description of exception
      expected - value expected by ValueMatcher
      actual - value being tested by ValueMatcher
    • ValueMatcherException

      public ValueMatcherException(String message, Throwable cause, String expected, String actual)
      Create new ValueMatcherException
      Parameters:
      message - description of exception
      cause - cause of ValueMatcherException
      expected - value expected by ValueMatcher
      actual - value being tested by ValueMatcher
  • Method Details

    • getExpected

      public String getExpected()
      Returns:
      the expected value
    • getActual

      public String getActual()
      Returns:
      the actual value