Moved PreviewGenerationException to PreviewGenerator module

This commit is contained in:
Alejandro Celaya
2019-08-11 19:47:15 +02:00
parent ef70e44a17
commit 095f075ca9
7 changed files with 7 additions and 7 deletions

View File

@@ -0,0 +1,17 @@
<?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));
}
}