Class UnexpectedMethodError

    • Constructor Detail

      • UnexpectedMethodError

        public UnexpectedMethodError​(Method method)
        Construct an UnexpecteMethodError with the given method parameter
        Parameters:
        method - the unexpected method
    • Method Detail

      • toString

        public String toString()
        Return a string representation of this error.
        Overrides:
        toString in class Throwable
        Returns:
        a string describing the error
      • getMethod

        public Method getMethod()
        Return the wrapped method.
        Returns:
        the method whose appearance was "unexpected" and was deemed an error