Utils: Implement more flexible SystemException
[senf.git] / Socket / Protocols / INet / ConnectedUDPSocketHandle.cc
index a356068..ef74194 100644 (file)
@@ -32,7 +32,7 @@
 #include <sys/socket.h>
 #include <sys/ioctl.h>
 
-#include "Utils/Exception.hh"
+#include "../../../Utils/Exception.hh"
 
 //#include "ConnectedUDPSocketHandle.mpp"
 #define prefix_
@@ -46,7 +46,7 @@ prefix_ void senf::ConnectedUDPv4SocketProtocol::init_client()
 {
     int sock = ::socket(PF_INET,SOCK_DGRAM,0);
     if (sock < 0)
-        throw SystemException(errno);
+        throwErrno();
     body().fd(sock);
 }
 
@@ -72,7 +72,7 @@ prefix_ void senf::ConnectedUDPv6SocketProtocol::init_client()
 {
     int sock = ::socket(PF_INET6,SOCK_DGRAM,0);
     if (sock < 0)
-        throw SystemException(errno);
+        throwErrno();
     body().fd(sock);
 }