We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 58f3cf8 commit 2118bf9Copy full SHA for 2118bf9
src/Client/AdminAuthenticator.php
@@ -13,6 +13,7 @@
13
use Vin\ShopwareSdk\Data\AccessToken;
14
use Vin\ShopwareSdk\Data\EndPointTrait;
15
use Vin\ShopwareSdk\Exception\AuthorizationFailedException;
16
+use Vin\ShopwareSdk\Exception\ShopwareResponseException;
17
use Vin\ShopwareSdk\Exception\ShopwareUnreachableException;
18
19
class AdminAuthenticator
@@ -59,7 +60,7 @@ public function fetchAccessToken(): AccessToken
59
60
'headers' => self::$headers,
61
'form_params' => $formParams
62
]);
- } catch (BadResponseException $exception) {
63
+ } catch (ShopwareResponseException $exception) {
64
throw new AuthorizationFailedException(
65
$exception->getResponse()->getBody()->getContents(),
66
$exception->getCode(),
0 commit comments