Class MethodInvocationSuccessfulResult

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object getReturnValue()
      The return value from the method invocation.
      <T extends java.lang.Throwable>
      T
      getThrown​(java.lang.Class<T> throwableClass)
      If MethodInvocationResult.isFail() is true, this method provides access to the actual checked exception that was thrown.
      boolean isFail()
      If true, then the method invocation ended with a checked exception being thrown.
      void rethrow()
      If the invocation threw a checked exception, this method will wrap that exception in a RuntimeException and throw that.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait