Enhance exception throwing with Boost Exception library

Change-Id: I471023fc23ffaebe04d9668426b4c1b03e4919aa
Refs: #2541
This commit is contained in:
Spyridon Mastorakis
2015-07-27 13:22:22 -07:00
parent a714792b03
commit 149e02cf7d
36 changed files with 184 additions and 163 deletions
+2 -1
View File
@@ -86,7 +86,8 @@ listNetworkInterfaces()
ifaddrs* ifa_list = nullptr;
if (::getifaddrs(&ifa_list) < 0)
throw std::runtime_error(std::string("getifaddrs() failed: ") + strerror(errno));
BOOST_THROW_EXCEPTION(std::runtime_error(std::string("getifaddrs() failed: ") +
strerror(errno)));
for (ifaddrs* ifa = ifa_list; ifa != nullptr; ifa = ifa->ifa_next) {
std::string ifname(ifa->ifa_name);