namespace SIGCM2.Domain.Exceptions;

/// <summary>
/// Thrown when a requested TipoDeIva does not exist in the system.
/// </summary>
public sealed class TipoDeIvaNotFoundException : DomainException
{
    public int Id { get; }

    public TipoDeIvaNotFoundException(int id)
        : base($"El tipo de IVA con id '{id}' no existe.")
    {
        Id = id;
    }
}
