Replace all uses of BOOST_THROW_EXCEPTION with NDN_THROW
Refs: #4834
Change-Id: I6c536cd321fba62d397bf8520f51d2dbba73d908
diff --git a/src/daemon/rrset-factory.cpp b/src/daemon/rrset-factory.cpp
index 029e3b0..d0938a1 100644
--- a/src/daemon/rrset-factory.cpp
+++ b/src/daemon/rrset-factory.cpp
@@ -52,7 +52,7 @@
Name zoneIdentityName = Name(m_zone.getName()).append(label::NDNS_ITERATIVE_QUERY);
if (m_dskCertName != DEFAULT_CERT &&
!matchCertificate(m_dskCertName, zoneIdentityName)) {
- BOOST_THROW_EXCEPTION(Error("Cannot verify certificate"));
+ NDN_THROW(Error("Cannot verify certificate"));
}
}
@@ -67,7 +67,7 @@
DbMgr dbMgr(m_dbFile);
const Name& zoneName = m_zone.getName();
if (!dbMgr.find(m_zone)) {
- BOOST_THROW_EXCEPTION(Error(zoneName.toUri() + " is not presented in the NDNS db"));
+ NDN_THROW(Error(zoneName.toUri() + " is not presented in the NDNS db"));
}
}
@@ -120,7 +120,7 @@
const ndn::DelegationList& delegations)
{
if (!m_checked) {
- BOOST_THROW_EXCEPTION(Error("You have to call checkZoneKey before call generate functions"));
+ NDN_THROW(Error("You have to call checkZoneKey before call generate functions"));
}
if (ttl == DEFAULT_RR_TTL)
@@ -147,7 +147,7 @@
const std::vector<std::string>& strings)
{
if (!m_checked) {
- BOOST_THROW_EXCEPTION(Error("You have to call checkZoneKey before call generate functions"));
+ NDN_THROW(Error("You have to call checkZoneKey before call generate functions"));
}
if (ttl == DEFAULT_RR_TTL)
@@ -181,7 +181,7 @@
const ndn::security::Certificate& cert)
{
if (!m_checked) {
- BOOST_THROW_EXCEPTION(Error("You have to call checkZoneKey before call generate functions"));
+ NDN_THROW(Error("You have to call checkZoneKey before call generate functions"));
}
if (ttl == DEFAULT_RR_TTL)
@@ -207,7 +207,7 @@
time::seconds ttl)
{
if (!m_checked) {
- BOOST_THROW_EXCEPTION(Error("You have to call checkZoneKey before call generate functions"));
+ NDN_THROW(Error("You have to call checkZoneKey before call generate functions"));
}
if (ttl == DEFAULT_RR_TTL)
@@ -234,7 +234,7 @@
const Name& upperLabel)
{
if (!m_checked) {
- BOOST_THROW_EXCEPTION(Error("You have to call checkZoneKey before call generate functions"));
+ NDN_THROW(Error("You have to call checkZoneKey before call generate functions"));
}
if (ttl == DEFAULT_RR_TTL)