From 22b423cd5eddafb67a74c94abd61008300145253 Mon Sep 17 00:00:00 2001 From: James Date: Mon, 26 Aug 2019 09:46:49 +0100 Subject: [PATCH] fix namespace of Exception --- src/Client.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Client.php b/src/Client.php index 8f22cbe..8ec59ed 100644 --- a/src/Client.php +++ b/src/Client.php @@ -51,7 +51,7 @@ class Client{ if(in_array($status_code,[200,201])){ return json_decode($result); }else{ - throw new Exception("API $status_code Code: ".$result); + throw new \Exception("API $status_code Code: ".$result); } } }