From c9066a8c18ff1b2bbce3e230a6517ce5d9c5dd19 Mon Sep 17 00:00:00 2001 From: Julien Deniau Date: Fri, 24 Feb 2017 16:56:10 +0100 Subject: [PATCH] use RestClientException instead of RestException --- src/RestClient.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }