Files
shlink/module/PreviewGenerator/src/Exception/PreviewGenerationException.php
2019-10-05 17:26:10 +02:00

19 lines
383 B
PHP

<?php
declare(strict_types=1);
namespace Shlinkio\Shlink\PreviewGenerator\Exception;
use RuntimeException;
use function sprintf;
/** @deprecated */
class PreviewGenerationException extends RuntimeException
{
public static function fromImageError(string $error): self
{
return new self(sprintf('Error generating a preview image with error: %s', $error));
}
}