astehlik/typo3-extension-mediaoembed

View on GitHub
Classes/Exception/RequestHandler/RequestHandlerClassInvalidException.php

Summary

Maintainability
A
0 mins
Test Coverage
F
0%
<?php

declare(strict_types=1);

namespace Sto\Mediaoembed\Exception\RequestHandler;

use Sto\Mediaoembed\Domain\Model\Provider;
use Sto\Mediaoembed\Exception\OEmbedException;

final class RequestHandlerClassInvalidException extends OEmbedException
{
    public function __construct(Provider $provider)
    {
        $message = 'The configured renderer class %s of provider: %s does not implement MedieRendererInterface.';
        $message = sprintf($message, $provider->getRequestHandlerClass(), $provider->getName());
        parent::__construct($message, 1620647865);
    }
}