Class UnexpectedMethodError

    • Constructor Summary

      Constructors 
      Constructor Description
      UnexpectedMethodError​(Method method)
      Construct an UnexpectedMethodError with the given method parameter
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Method getMethod()
      Return the wrapped method.
      java.lang.String toString()
      Return a string representation of this error.
      • Methods inherited from class java.lang.Throwable

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

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

      • UnexpectedMethodError

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

      • toString

        public java.lang.String toString()
        Return a string representation of this error.
        Overrides:
        toString in class java.lang.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