namespace SIGCM2.Domain.Exceptions;

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

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