public ExecutionResult toExecutionResult ( ) { ExecutionResult executionResult = new ExecutionResultImpl ( this ) ; if ( ! this . getUnderlyingErrors ( ) . isEmpty ( ) ) { executionResult = new ExecutionResultImpl ( this . getUnderlyingErrors ( ) ) ; } return executionResult ; }
This is useful for turning this abort signal into an execution result which is an error state with the underlying errors in it .