Signed-off-by: Miod Vallat <miod.vallat@powerdns.com>
throw PDNSException("Unknown error while receiving data");
}
-void RemoteBackend::makeErrorAndThrow(Json& value)
-{
- std::string msg = "Remote process indicated a failure";
- for (const auto& message : value["log"].array_items()) {
- msg += " '" + message.string_value() + "'";
- }
- throw PDNSException(msg);
-}
-
/**
* Standard ctor and dtor
*/
bool send(Json& value);
bool recv(Json& value);
- static void makeErrorAndThrow(Json& value);
static string asString(const Json& value)
{