Files
shlink/module/Common/src/Exception/PreviewGenerationException.php
2019-01-28 10:52:05 +01:00

15 lines
330 B
PHP

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