]> git.tdb.fi Git - libs/net.git/blobdiff - source/net/windows/unix.cpp
Use default member initializers where possible
[libs/net.git] / source / net / windows / unix.cpp
index 2aa885708da84efb9c33afde5b4e5fa0639fdcb3..6a56ee0b8357a68b4a5851ac40107d9172672a4a 100644 (file)
@@ -1,4 +1,4 @@
-#include <stdexcept>
+#include <msp/core/except.h>
 #include "platform_api.h"
 #include "sockaddr_private.h"
 #include "unix.h"
@@ -8,10 +8,9 @@ using namespace std;
 namespace Msp {
 namespace Net {
 
-UnixAddr::UnixAddr(const SysAddr &):
-       abstract(false)
+UnixAddr::UnixAddr(const SysAddr &)
 {
-       throw logic_error("AF_UNIX not supported");
+       throw unsupported("AF_UNIX");
 }
 
 UnixAddr::UnixAddr(const string &p, bool a):
@@ -22,7 +21,7 @@ UnixAddr::UnixAddr(const string &p, bool a):
 
 SockAddr::SysAddr UnixAddr::to_sys() const
 {
-       throw logic_error("AF_UNIX not supported");
+       throw unsupported("AF_UNIX");
 }
 
 } // namespace Net