From fa6fdc067e2cb37f1a275a70a2ea721e7bcb2565 Mon Sep 17 00:00:00 2001 From: ngfrolov Date: Tue, 17 Jan 2023 15:40:49 +0500 Subject: [PATCH] WellFinalDocumentsService.ReNotifyPublishersAsync replace exception type by argumentInvalid --- AsbCloudInfrastructure/Services/WellFinalDocumentsService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AsbCloudInfrastructure/Services/WellFinalDocumentsService.cs b/AsbCloudInfrastructure/Services/WellFinalDocumentsService.cs index 818eef38..4ffaa620 100644 --- a/AsbCloudInfrastructure/Services/WellFinalDocumentsService.cs +++ b/AsbCloudInfrastructure/Services/WellFinalDocumentsService.cs @@ -204,7 +204,7 @@ namespace AsbCloudInfrastructure.Services })); if(!docs.Any()) - throw new Exception("Нет такой категории, или в нее уже загружен документ"); + throw new ArgumentInvalidException("Нет такой категории, или в нее уже загружен документ", nameof(idCategory)); var message = requester.MakeDisplayName() + " ожидает от Вас загрузку на портал документа «{{0}}»"; await GenerateMessageAsync(docs, message, token);