]> git.tdb.fi Git - libs/net.git/blobdiff - source/net/windows/unix.cpp
Adjust exception classes and messages
[libs/net.git] / source / net / windows / unix.cpp
index 2aa885708da84efb9c33afde5b4e5fa0639fdcb3..052710e8363eaa932962c82ab7ee22269aeebbb0 100644 (file)
@@ -1,4 +1,4 @@
-#include <stdexcept>
+#include <msp/core/except.h>
 #include "platform_api.h"
 #include "sockaddr_private.h"
 #include "unix.h"
@@ -11,7 +11,7 @@ namespace Net {
 UnixAddr::UnixAddr(const SysAddr &):
        abstract(false)
 {
-       throw logic_error("AF_UNIX not supported");
+       throw unsupported("AF_UNIX");
 }
 
 UnixAddr::UnixAddr(const string &p, bool a):
@@ -22,7 +22,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