@@ 117-118 (lines=2) @@ | ||
114 | ||
115 | if (isset($body['error']['code'])) { |
|
116 | switch ($body['error']['code']) { |
|
117 | case -32600: |
|
118 | throw new \InvalidArgumentException('Invalid Request: ' . $body['error']['message'], $body['error']['code']); |
|
119 | case -32601: |
|
120 | throw new \BadFunctionCallException('Procedure not found: ' . $body['error']['message'], $body['error']['code']); |
|
121 | case -32602: |
|
@@ 121-122 (lines=2) @@ | ||
118 | throw new \InvalidArgumentException('Invalid Request: ' . $body['error']['message'], $body['error']['code']); |
|
119 | case -32601: |
|
120 | throw new \BadFunctionCallException('Procedure not found: ' . $body['error']['message'], $body['error']['code']); |
|
121 | case -32602: |
|
122 | throw new \InvalidArgumentException('Invalid arguments: ' . $body['error']['message'], $body['error']['code']); |
|
123 | case -32603: |
|
124 | throw new \RuntimeException('Internal Error: ' . $body['error']['message'], $body['error']['code']); |
|
125 | default: |