Replace all uses of BOOST_THROW_EXCEPTION with NDN_THROW
Refs: #4834
Change-Id: If2455e1830f310beea434ffb455d960e11c4c2ed
diff --git a/daemon/face/ethernet-factory.cpp b/daemon/face/ethernet-factory.cpp
index 7603343..4d4d295 100644
--- a/daemon/face/ethernet-factory.cpp
+++ b/daemon/face/ethernet-factory.cpp
@@ -1,6 +1,6 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
- * Copyright (c) 2014-2018, Regents of the University of California,
+ * Copyright (c) 2014-2019, Regents of the University of California,
* Arizona Board of Regents,
* Colorado State University,
* University Pierre & Marie Curie, Sorbonne University,
@@ -96,12 +96,12 @@
const std::string& valueStr = value.get_value<std::string>();
mcastConfig.group = ethernet::Address::fromString(valueStr);
if (mcastConfig.group.isNull()) {
- BOOST_THROW_EXCEPTION(ConfigFile::Error("face_system.ether.mcast_group: '" +
- valueStr + "' cannot be parsed as an Ethernet address"));
+ NDN_THROW(ConfigFile::Error("face_system.ether.mcast_group: '" +
+ valueStr + "' cannot be parsed as an Ethernet address"));
}
else if (!mcastConfig.group.isMulticast()) {
- BOOST_THROW_EXCEPTION(ConfigFile::Error("face_system.ether.mcast_group: '" +
- valueStr + "' is not a multicast address"));
+ NDN_THROW(ConfigFile::Error("face_system.ether.mcast_group: '" +
+ valueStr + "' is not a multicast address"));
}
}
else if (key == "mcast_ad_hoc") {
@@ -115,7 +115,7 @@
mcastConfig.netifPredicate.parseBlacklist(value);
}
else {
- BOOST_THROW_EXCEPTION(ConfigFile::Error("Unrecognized option face_system.ether." + key));
+ NDN_THROW(ConfigFile::Error("Unrecognized option face_system.ether." + key));
}
}
}