forked from ddrilling/AsbCloudServer
WellFinalDocumentsService.ReNotifyPublishersAsync replace exception type by argumentInvalid
This commit is contained in:
parent
07f77f83d8
commit
fa6fdc067e
@ -204,7 +204,7 @@ namespace AsbCloudInfrastructure.Services
|
|||||||
}));
|
}));
|
||||||
|
|
||||||
if(!docs.Any())
|
if(!docs.Any())
|
||||||
throw new Exception("Нет такой категории, или в нее уже загружен документ");
|
throw new ArgumentInvalidException("Нет такой категории, или в нее уже загружен документ", nameof(idCategory));
|
||||||
|
|
||||||
var message = requester.MakeDisplayName() + " ожидает от Вас загрузку на портал документа «{{0}}»";
|
var message = requester.MakeDisplayName() + " ожидает от Вас загрузку на портал документа «{{0}}»";
|
||||||
await GenerateMessageAsync(docs, message, token);
|
await GenerateMessageAsync(docs, message, token);
|
||||||
|
Loading…
Reference in New Issue
Block a user