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; }