Skip to content

Commit

Permalink
use RestClientException instead of RestException
Browse files Browse the repository at this point in the history
  • Loading branch information
jdeniau committed Feb 24, 2017
1 parent fface8c commit c9066a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/RestClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit c9066a8

Please sign in to comment.