public static ExecutionResult failure ( String message ) { ExecutionResult executionResult = new ExecutionResult ( ) ; executionResult . withErrorMessages ( message ) ; return executionResult ; }
Mark the result as Failure .