mirror of
https://github.com/shlinkio/shlink.git
synced 2026-03-07 15:53:13 +08:00
19 lines
383 B
PHP
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));
|
|
}
|
|
}
|