MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / makeError

Method makeError

app/src/API/CommandProtocol.h:138–150  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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/**

Callers

nothing calls this directly

Calls 1

QJsonObjectClass · 0.85

Tested by

no test coverage detected