| 114 | } |
| 115 | |
| 116 | bool RpcProtocolClient::HasError(const Json::Value &response) { |
| 117 | if (this->version == JSONRPC_CLIENT_V1 && !response[KEY_ERROR].isNull()) |
| 118 | return true; |
| 119 | else if (this->version == JSONRPC_CLIENT_V2 && response.isMember(KEY_ERROR)) |
| 120 | return true; |
| 121 | return false; |
| 122 | } |