Introduced common exception superclass

This commit is contained in:
lukas committed 2026-10-15 13:39:44 +00:00
1 parent f749d4a05e
commit afafb1ac3d
12 files changed
+48 -28

No files matched your search

+2 -2
View File
@@ -6,7 +6,7 @@
namespace CloudObjects\SDK;
use Exception;
use CloudObjects\SDK\Exceptions\SDKException;
use ML\IRI\IRI;
use ML\JsonLD\Node;
@@ -24,7 +24,7 @@ class ObjectRetrieverFacade {
private static function getInstance() : ObjectRetriever {
if (self::$instance === null)
throw new Exception('ObjectRetrieverFacade has not been initialized. Call setObjectRetriever() first.');
throw new SDKException('ObjectRetrieverFacade has not been initialized. Call setObjectRetriever() first.');
return self::$instance;
}