-#include <stdexcept>
+#include <msp/core/except.h>
#include "platform_api.h"
#include "sockaddr_private.h"
#include "unix.h"
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):
SockAddr::SysAddr UnixAddr::to_sys() const
{
- throw logic_error("AF_UNIX not supported");
+ throw unsupported("AF_UNIX");
}
} // namespace Net