|
@@ 196-197 (lines=2) @@
|
| 193 |
|
|
| 194 |
|
if (isset($body['error']['code'])) { |
| 195 |
|
switch ($body['error']['code']) { |
| 196 |
|
case -32600: |
| 197 |
|
throw new \InvalidArgumentException( |
| 198 |
|
'Invalid Request: ' . $body['error']['message'], |
| 199 |
|
$body['error']['code'] |
| 200 |
|
); |
|
@@ 206-207 (lines=2) @@
|
| 203 |
|
'Procedure not found: ' . $body['error']['message'], |
| 204 |
|
$body['error']['code'] |
| 205 |
|
); |
| 206 |
|
case -32602: |
| 207 |
|
throw new \InvalidArgumentException( |
| 208 |
|
'Invalid arguments: ' . $body['error']['message'], |
| 209 |
|
$body['error']['code'] |
| 210 |
|
); |