mirror of
https://github.com/shlinkio/shlink.git
synced 2025-01-06 22:23:54 -06:00
13 lines
294 B
PHP
13 lines
294 B
PHP
<?php
|
|
declare(strict_types=1);
|
|
|
|
namespace Shlinkio\Shlink\Common\Exception;
|
|
|
|
class PreviewGenerationException extends RuntimeException
|
|
{
|
|
public static function fromImageError($error)
|
|
{
|
|
return new self(sprintf('Error generating a preview image with error: %s', $error));
|
|
}
|
|
}
|