change BOOST_THROW to NDN_THROW
Change-Id: Ic5a0192302dd2965258d616fe163f3539b2104ea
diff --git a/src/ca-storage/ca-memory.cpp b/src/ca-storage/ca-memory.cpp
index e08a822..206f431 100644
--- a/src/ca-storage/ca-memory.cpp
+++ b/src/ca-storage/ca-memory.cpp
@@ -40,7 +40,7 @@
{
auto search = m_requests.find(requestId);
if (search == m_requests.end()) {
- BOOST_THROW_EXCEPTION(std::runtime_error("Request " + requestId + " doest not exists"));
+ NDN_THROW(std::runtime_error("Request " + requestId + " doest not exists"));
}
return search->second;
}
@@ -53,7 +53,7 @@
m_requests[request.m_requestId] = request;
}
else {
- BOOST_THROW_EXCEPTION(std::runtime_error("Request " + request.m_requestId + " already exists"));
+ NDN_THROW(std::runtime_error("Request " + request.m_requestId + " already exists"));
}
}
diff --git a/src/ca-storage/ca-sqlite.cpp b/src/ca-storage/ca-sqlite.cpp
index d3f1183..e9905d6 100644
--- a/src/ca-storage/ca-sqlite.cpp
+++ b/src/ca-storage/ca-sqlite.cpp
@@ -88,7 +88,7 @@
#endif
);
if (result != SQLITE_OK)
- BOOST_THROW_EXCEPTION(std::runtime_error("CaSqlite DB cannot be opened/created: " + dbDir.string()));
+ NDN_THROW(std::runtime_error("CaSqlite DB cannot be opened/created: " + dbDir.string()));
// initialize database specific tables
char* errorMessage = nullptr;
@@ -96,7 +96,7 @@
nullptr, nullptr, &errorMessage);
if (result != SQLITE_OK && errorMessage != nullptr) {
sqlite3_free(errorMessage);
- BOOST_THROW_EXCEPTION(std::runtime_error("CaSqlite DB cannot be initialized"));
+ NDN_THROW(std::runtime_error("CaSqlite DB cannot be initialized"));
}
}
@@ -139,7 +139,7 @@
}
}
else {
- BOOST_THROW_EXCEPTION(std::runtime_error("Request " + requestId + " cannot be fetched from database"));
+ NDN_THROW(std::runtime_error("Request " + requestId + " cannot be fetched from database"));
}
}
@@ -168,7 +168,7 @@
statement.bind(11, request.m_challengeState->m_remainingTime.count());
}
if (statement.step() != SQLITE_DONE) {
- BOOST_THROW_EXCEPTION(std::runtime_error("Request " + request.m_requestId + " cannot be added to database"));
+ NDN_THROW(std::runtime_error("Request " + request.m_requestId + " cannot be added to database"));
}
}