fix namespace of Exception
This commit is contained in:
parent
4747e9b270
commit
22b423cd5e
@ -51,7 +51,7 @@ class Client{
|
|||||||
if(in_array($status_code,[200,201])){
|
if(in_array($status_code,[200,201])){
|
||||||
return json_decode($result);
|
return json_decode($result);
|
||||||
}else{
|
}else{
|
||||||
throw new Exception("API $status_code Code: ".$result);
|
throw new \Exception("API $status_code Code: ".$result);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user