Class ValueMatcherException

  • All Implemented Interfaces:
    java.io.Serializable

    public class ValueMatcherException
    extends java.lang.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​(java.lang.String message, java.lang.String expected, java.lang.String actual)
      Create new ValueMatcherException
      ValueMatcherException​(java.lang.String message, java.lang.Throwable cause, java.lang.String expected, java.lang.String actual)
      Create new ValueMatcherException
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getActual()  
      java.lang.String getExpected()  
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • ValueMatcherException

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

        public ValueMatcherException​(java.lang.String message,
                                     java.lang.Throwable cause,
                                     java.lang.String expected,
                                     java.lang.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 Detail

      • getExpected

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

        public java.lang.String getActual()
        Returns:
        the actual value