using Domains;
namespace Infrastructure.Database.GeneralExceptions;
/// Exception to throw when entity with specific id not found
/// Identifier of entity
/// Not found entity type
public class EntityNotFoundException(Guid id) : Exception($"Entity {typeof(T).Name} with id '{id}' not found")
    where T : class, IEntity;