setArgPrefix(mode+suffix);
d_db=0;
d_logprefix="["+mode+"Backend"+suffix+"] ";
-
+
try
{
d_dnssecQueries = mustDo("dnssec");
}
- catch (ArgException e)
+ catch (const ArgException&)
{
d_dnssecQueries = false;
}
bool api_rectify = boolFromJson(document, "api_rectify");
di.backend->setDomainMetadataOne(zonename, "API-RECTIFY", api_rectify ? "1" : "0");
}
- catch (JsonException) {}
+ catch (const JsonException&) {}
if (document["account"].is_string()) {
di.backend->setAccount(zonename, document["account"].string_value());
dnssecDocVal = boolFromJson(document, "dnssec");
dnssecInJSON = true;
}
- catch (JsonException) {}
+ catch (const JsonException&) {}
bool isDNSSECZone = dk.isSecuredZone(zonename);
try {
kind = stringFromJson(document, "kind");
- } catch (JsonException) {
+ } catch (const JsonException&) {
throw ApiException("kind is not specified or not a string");
}