namespace SIGCM2.Domain.Exceptions;

/// <summary>
/// Thrown when a requested Rubro does not exist in the system. → HTTP 404
/// </summary>
public sealed class RubroNotFoundException : DomainException
{
    public int Id { get; }

    public RubroNotFoundException(int id)
        : base($"El rubro con id '{id}' no existe.")
    {
        Id = id;
    }
}
