diff --git a/src/RestClient.php b/src/RestClient.php index 9a7f24e..4d4a021 100644 --- a/src/RestClient.php +++ b/src/RestClient.php @@ -106,7 +106,7 @@ public function get($path, $parameters = []) if ($e->getResponse()->getStatusCode() === 404) { return null; } - throw new RestException('Error while getting resource', $path, [], 7, $e); + throw new RestClientException('Error while getting resource', $path, [], 7, $e); } catch (TransferException $e) { throw new RestException('Error while getting resource', $path, [], 1, $e); }