Skip to content

Commit 4b1c79c

Browse files
committed
Correct bug to allow throwing Exceptions
1 parent 5210a81 commit 4b1c79c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

inservibile/JsonRPCClient.class.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,10 +170,10 @@ public function __call($method,$params) {
170170
if (!$this->notification) {
171171
// check
172172
if ($response['id'] != $currentId) {
173-
throw new Exception('Incorrect response id (request id: '.$currentId.', response id: '.$response['id'].')');
173+
throw new \Exception('Incorrect response id (request id: '.$currentId.', response id: '.$response['id'].')');
174174
}
175175
if (!is_null($response['error'])) {
176-
throw new Exception('Request error: '.$response['error']);
176+
throw new \Exception('Request error: '.$response['error']);
177177
}
178178

179179
return $response['result'];

0 commit comments

Comments
 (0)