namespace SIGCM2.Domain.Exceptions;

/// <summary>
/// Thrown when a requested ProductType does not exist. → HTTP 404
/// </summary>
public sealed class ProductTypeNotFoundException : DomainException
{
    public int ProductTypeId { get; }

    public ProductTypeNotFoundException(int id)
        : base($"El tipo de producto con id={id} no existe.")
    {
        ProductTypeId = id;
    }
}
