|
@@ 137-138 (lines=2) @@
|
| 134 |
|
|
| 135 |
|
if (isset($body['error']['code'])) { |
| 136 |
|
switch ($body['error']['code']) { |
| 137 |
|
case -32600: |
| 138 |
|
throw new \InvalidArgumentException('Invalid Request: ' . $body['error']['message'], $body['error']['code']); |
| 139 |
|
case -32601: |
| 140 |
|
throw new \BadFunctionCallException('Procedure not found: ' . $body['error']['message'], $body['error']['code']); |
| 141 |
|
case -32602: |
|
@@ 141-142 (lines=2) @@
|
| 138 |
|
throw new \InvalidArgumentException('Invalid Request: ' . $body['error']['message'], $body['error']['code']); |
| 139 |
|
case -32601: |
| 140 |
|
throw new \BadFunctionCallException('Procedure not found: ' . $body['error']['message'], $body['error']['code']); |
| 141 |
|
case -32602: |
| 142 |
|
throw new \InvalidArgumentException('Invalid arguments: ' . $body['error']['message'], $body['error']['code']); |
| 143 |
|
case -32603: |
| 144 |
|
throw new \RuntimeException('Internal Error: ' . $body['error']['message'], $body['error']['code']); |
| 145 |
|
default: |