protected override ExecutionResult <string> OnPeasyExceptionHandled(PeasyException exception) { _doerOfThings.Log(nameof(OnPeasyExceptionHandled)); return(base.OnPeasyExceptionHandled(exception)); }
/// <summary> /// Invoked when an exception of type <see cref="PeasyException"/> is handled. /// </summary> /// <remarks> /// Override this method to return a custom execution result of type <see cref="ExecutionResult"/> or to further manipulate it when a <see cref="PeasyException"/> is handled. /// </remarks> /// <returns>A failed execution result.</returns> protected virtual ExecutionResult OnPeasyExceptionHandled(PeasyException exception) { return(OnFailedExecution(new[] { new ValidationResult(exception.Message) })); }