Fixed Class "http\Exception\BadUrlException" not found exception

This commit is contained in:
2024-03-25 15:47:20 +03:00
parent 1baf7ae2ca
commit 178c158618
+1 -2
View File
@@ -8,7 +8,6 @@
namespace geckon01\SimpleImageCompressor;
use http\Exception\BadUrlException;
/**
* Class SimpleImageCompressor
@@ -135,7 +134,7 @@ class SimpleImageCompressor
$imageData = file_get_contents($this->imageResourceUrl);
if($imageData === false)
throw new BadUrlException("Cannot load image from provided resource: ".$this->imageResourceUrl);
throw new \Exception("Cannot load image from provided resource: ".$this->imageResourceUrl);
$this->imageData = $imageData;
}