Utils: Implement helper macros to add file/line information to SystemException's
[senf.git] / Socket / Protocols / UN / ConnectedUNDatagramSocketHandle.cc
index 21e7ddc..af7fd44 100644 (file)
@@ -40,7 +40,7 @@ prefix_ void senf::ConnectedUNDatagramSocketProtocol::init_client() const
 {
     int sock = ::socket(PF_UNIX, SOCK_DGRAM, 0);
     if (sock < 0)
-        throw SystemException( "Could not create socket(PF_UNIX,SOCK_DGRAM,0)." );
+        SENF_THROW_SYSTEM_EXCEPTION("Could not create socket(PF_UNIX,SOCK_DGRAM,0).");
     fd(sock);
 }