<?php
declare(strict_types=1);

namespace App\Domain\AI\Exception;

use App\Framework\Exception\FrameworkException;
use App\Domain\AI\AiProvider;

class AiProviderUnavailableException extends FrameworkException
{
    public function __construct(AiProvider $provider, string $reason = '')
    {
        $message = "AI Provider '{$provider->value}' ist nicht verfügbar";
        if ($reason) {
            $message .= ": $reason";
        }
        parent::__construct($message);
    }
}
