using Deal.SharedKernel.Resources; namespace Deal.SharedKernel.Errors; /// /// Запрошенный объект не найден. /// public sealed class NotFoundException : DealException { public NotFoundException(string entityName) : base(DealErrorCodes.NotFound, ErrorResourceKeys.NotFoundEntity, entityName) { } public NotFoundException(string entityName, string entityId) : base(DealErrorCodes.NotFound, ErrorResourceKeys.NotFoundEntityWithId, entityName, entityId) { } }