/// <summary> /// The ExceptionCatch /// </summary> /// <param name="aggregate">The aggregate<see cref="Aggregate{Fpn}"/></param> /// <param name="errorORwarningCheck">The errorORwarningCheck<see cref="string"/></param> /// <returns>The <see cref="Task"/></returns> private async Task ExceptionCatch(Aggregate <Fpn> aggregate, string errorORwarningCheck) { try { _validator.ValidateAndThrow(aggregate, ruleSet: errorORwarningCheck); } catch (Exception ex) { await LogException(ex, aggregate); } }