code: public static <R> MethodResult<R> internalFailure(Throwable failure) {
          return new MethodResult<R>(null, failure, true);
      }
docs: Create a MethodResult for an internal exception which occurred while trying to run a method
  
  @param failure the internal exception
  @return the new MethodResult