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