<?php

declare(strict_types=1);

namespace App\Exceptions;

use RuntimeException;

/**
 * Исключение, выбрасываемое когда Telegram-кастомер не найден
 *
 * @package App\Exceptions
 */
class TelegramCustomerNotFoundException extends RuntimeException
{
    public function __construct(int $customerId, ?\Throwable $previous = null)
    {
        parent::__construct(
            "Telegram customer with record ID {$customerId} not found",
            404,
            $previous
        );
    }
}
