private void ProcessExceptions(ExceptionCollector exceptionCollector) { var exception = exceptionCollector.CollectFor(_result.Status, _result.GetSubSteps()); if (exception == null) { return; } _result.UpdateException(exception); throw new StepExecutionException(exception, _result.Status); }
private void ProcessExceptions() { var exception = _exceptionCollector.CollectFor(_result.Status, _result.GetSubSteps()); if (exception == null) { return; } _result.UpdateException(exception); if (_stepContext.ShouldAbortSubStepExecution(exception)) { throw new StepExecutionException(exception, _result.Status); } }
private void UpdateStepStatus() { _result.UpdateException(null); _result.SetStatus(_result.GetSubSteps().GetMostSevereOrNull()?.Status ?? ExecutionStatus.Passed); }