[ImageEncoder] Handle VIPS unsupported image type
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user