|
@@ 187-188 (lines=2) @@
|
| 184 |
|
|
| 185 |
|
if (isset($body['error']['code'])) { |
| 186 |
|
switch ($body['error']['code']) { |
| 187 |
|
case -32600: |
| 188 |
|
throw new \InvalidArgumentException('Invalid Request: ' . $body['error']['message'], $body['error']['code']); |
| 189 |
|
case -32601: |
| 190 |
|
throw new \BadFunctionCallException('Procedure not found: ' . $body['error']['message'], $body['error']['code']); |
| 191 |
|
case -32602: |
|
@@ 191-192 (lines=2) @@
|
| 188 |
|
throw new \InvalidArgumentException('Invalid Request: ' . $body['error']['message'], $body['error']['code']); |
| 189 |
|
case -32601: |
| 190 |
|
throw new \BadFunctionCallException('Procedure not found: ' . $body['error']['message'], $body['error']['code']); |
| 191 |
|
case -32602: |
| 192 |
|
throw new \InvalidArgumentException('Invalid arguments: ' . $body['error']['message'], $body['error']['code']); |
| 193 |
|
case -32603: |
| 194 |
|
throw new \RuntimeException('Internal Error: ' . $body['error']['message'], $body['error']['code']); |
| 195 |
|
default: |