Utils: Implement more flexible SystemException
[senf.git] / Socket / Protocols / UN / UNDatagramSocketHandle.cc
index 1f37489..a91f49e 100644 (file)
@@ -39,7 +39,7 @@ prefix_ void senf::UNDatagramSocketProtocol::init_client() const
 {
     int sock = ::socket(PF_UNIX,SOCK_DGRAM,0);
     if (sock < 0)
-        throw SystemException(errno);
+        throwErrno();
     body().fd(sock);
 }