From 199bd37cbb05ea9d637a8c7b54c0bd970095994c Mon Sep 17 00:00:00 2001 From: Stanislav Derebcinschi Date: Mon, 23 Feb 2015 19:18:57 +0300 Subject: [PATCH] Replace class ApiException to Exception because class Api extension doesn't exists in current namespace. --- client.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client.php b/client.php index acd236d..c2363c5 100644 --- a/client.php +++ b/client.php @@ -72,7 +72,7 @@ function _api($method, $url, $query='', $payload='', $request_headers=array(), & $response = json_decode($response, true); if (isset($response['errors']) or ($response_headers['http_status_code'] >= 400)) - throw new ApiException(compact('method', 'path', 'params', 'response_headers', 'response', 'shops_myshopify_domain', 'shops_token')); + throw new Exception(compact('method', 'path', 'params', 'response_headers', 'response', 'shops_myshopify_domain', 'shops_token')); return (is_array($response) and !empty($response)) ? array_shift($response) : $response; }