Replace all uses of BOOST_THROW_EXCEPTION with NDN_THROW

Refs: #4834
Change-Id: I1851f0b03f1192763b367ee6afba6860717420e7
diff --git a/tools/ping/server/ping-server.cpp b/tools/ping/server/ping-server.cpp
index 4162b05..ad8177c 100644
--- a/tools/ping/server/ping-server.cpp
+++ b/tools/ping/server/ping-server.cpp
@@ -46,7 +46,7 @@
                        Name(m_options.prefix).append("ping"),
                        bind(&PingServer::onInterest, this, _2),
                        [] (const auto&, const auto& reason) {
-                         BOOST_THROW_EXCEPTION(std::runtime_error("Failed to register prefix: " + reason));
+                         NDN_THROW(std::runtime_error("Failed to register prefix: " + reason));
                        });
 }