| 136 | } |
| 137 | |
| 138 | static CommandResponse makeError(const QString& id, |
| 139 | const QString& code, |
| 140 | const QString& message, |
| 141 | const QJsonObject& data = QJsonObject()) |
| 142 | { |
| 143 | CommandResponse resp; |
| 144 | resp.id = id; |
| 145 | resp.success = false; |
| 146 | resp.errorCode = code; |
| 147 | resp.errorMessage = message; |
| 148 | resp.errorData = data; |
| 149 | return resp; |
| 150 | } |
| 151 | }; |
| 152 | |
| 153 | /** |
nothing calls this directly
no test coverage detected