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