mirror of
https://github.com/shlinkio/shlink.git
synced 2026-03-05 23:03:11 +08:00
15 lines
317 B
PHP
15 lines
317 B
PHP
<?php
|
|
declare(strict_types=1);
|
|
|
|
namespace Shlinkio\Shlink\Common\Exception;
|
|
|
|
use function sprintf;
|
|
|
|
class PreviewGenerationException extends RuntimeException
|
|
{
|
|
public static function fromImageError($error)
|
|
{
|
|
return new self(sprintf('Error generating a preview image with error: %s', $error));
|
|
}
|
|
}
|