Enhance exception throwing with Boost Exception library
Change-Id: I471023fc23ffaebe04d9668426b4c1b03e4962ba
Refs: #2997
diff --git a/src/interest-filter.hpp b/src/interest-filter.hpp
index 6207e18..68cb7d5 100644
--- a/src/interest-filter.hpp
+++ b/src/interest-filter.hpp
@@ -94,8 +94,8 @@
operator const Name&() const
{
if (static_cast<bool>(m_regexFilter)) {
- throw Error("Please update OnInterest callback to accept const InterestFilter& "
- "(non-trivial Interest filter is being used)");
+ BOOST_THROW_EXCEPTION(Error("Please update OnInterest callback to accept const "
+ "InterestFilter& (non-trivial Interest filter is being used)"));
}
return m_prefix;
}