[ImageEncoder] Handle VIPS unsupported image type

This commit is contained in:
2021-08-14 15:00:40 +01:00
committed by Hugo Sales
parent f690bc06ae
commit ef1a9ce3b1
2 changed files with 69 additions and 14 deletions

View File

@@ -0,0 +1,19 @@
<?php
namespace Plugin\ImageEncoder\Exception;
use App\Util\Exception\ClientException;
use Throwable;
class UnsupportedFileTypeException extends ClientException
{
/**
* @param string $message
* @param int $code
* @param null|Throwable $previous
*/
public function __construct(string $message = '', int $code = 418, Throwable $previous = null)
{
parent::__construct($message, $code, $previous);
}
}