@@ 185-186 (lines=2) @@ | ||
182 | ||
183 | if (isset($body['error']['code'])) { |
|
184 | switch ($body['error']['code']) { |
|
185 | case -32600: |
|
186 | throw new \InvalidArgumentException( |
|
187 | 'Invalid Request: ' . $body['error']['message'], |
|
188 | $body['error']['code'] |
|
189 | ); |
|
@@ 195-196 (lines=2) @@ | ||
192 | 'Procedure not found: ' . $body['error']['message'], |
|
193 | $body['error']['code'] |
|
194 | ); |
|
195 | case -32602: |
|
196 | throw new \InvalidArgumentException( |
|
197 | 'Invalid arguments: ' . $body['error']['message'], |
|
198 | $body['error']['code'] |
|
199 | ); |