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\WebAPI;
use Exception;
use CloudObjects\SDK\Exceptions\SDKException;
use ML\JsonLD\Node;
use GuzzleHttp\Client;
use Webmozart\Assert\Assert,
@@ -114,7 +114,7 @@ class OAuth2AuthServer {
// no additional params needed
break;
default:
throw new Exception("No flow/grant_type found.");
throw new SDKException("No flow/grant_type found.");
}
$grantCacheKey = sha1(json_encode($params));