namespace SIGCM2.Domain.Exceptions;

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

    public PuntoDeVentaNotFoundException(int id)
        : base($"El punto de venta con id '{id}' no existe.")
    {
        Id = id;
    }
}
