1
0
mirror of https://github.com/mfontanini/libtins synced 2026-01-30 21:44:26 +01:00

Use custom exceptions everywhere

This commit is contained in:
Matias Fontanini
2017-05-13 10:59:15 -07:00
parent a5766a19c2
commit 64778f5412
14 changed files with 37 additions and 37 deletions

View File

@@ -59,7 +59,6 @@
#include "detail/smart_ptr.h"
using std::string;
using std::runtime_error;
/** \cond */
@@ -72,7 +71,7 @@ addrinfo* resolve_domain(const string& to_resolve, int family) {
return result;
}
else {
throw runtime_error("Could not resolve address");
throw Tins::exception_base("Could not resolve address");
}
}
@@ -121,7 +120,7 @@ HWAddress<6> resolve_hwaddr(const NetworkInterface& iface,
}
}
#endif
throw runtime_error("Could not resolve hardware address");
throw exception_base("Could not resolve hardware address");
}
HWAddress<6> resolve_hwaddr(IPv4Address ip, PacketSender& sender) {