public async Task AddAsync(Response Response) { try { await m_repository.CreateAsync(Response); } catch (ValidationException e) { m_logger.LogWarning(e, "A validation failed"); throw; } catch (Exception e) when(e.GetType() != typeof(ValidationException)) { m_logger.LogCritical(e, $"Unexpected Exception while trying to create a Response with the properties : {JsonConvert.SerializeObject(Response, Formatting.Indented)}"); throw; } }