|
@@ 174-175 (lines=2) @@
|
| 171 |
|
|
| 172 |
|
if (isset($body['error']['code'])) { |
| 173 |
|
switch ($body['error']['code']) { |
| 174 |
|
case -32600: |
| 175 |
|
throw new \InvalidArgumentException( |
| 176 |
|
'Invalid Request: ' . $body['error']['message'], |
| 177 |
|
$body['error']['code'] |
| 178 |
|
); |
|
@@ 184-185 (lines=2) @@
|
| 181 |
|
'Procedure not found: ' . $body['error']['message'], |
| 182 |
|
$body['error']['code'] |
| 183 |
|
); |
| 184 |
|
case -32602: |
| 185 |
|
throw new \InvalidArgumentException( |
| 186 |
|
'Invalid arguments: ' . $body['error']['message'], |
| 187 |
|
$body['error']['code'] |
| 188 |
|
); |