X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fnet%2Fwindows%2Funix.cpp;h=b38a258b24421f208f42e7366d1552bd401e204c;hb=HEAD;hp=2aa885708da84efb9c33afde5b4e5fa0639fdcb3;hpb=88bbb4039aa274c7f41ebe3a18085b63427e5475;p=libs%2Fnet.git diff --git a/source/net/windows/unix.cpp b/source/net/windows/unix.cpp index 2aa8857..b38a258 100644 --- a/source/net/windows/unix.cpp +++ b/source/net/windows/unix.cpp @@ -1,17 +1,16 @@ -#include #include "platform_api.h" -#include "sockaddr_private.h" #include "unix.h" +#include +#include "sockaddr_private.h" 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