-#include <msp/core/except.h>
+#include <stdexcept>
#include "inet.h"
#include "inet6.h"
+using namespace std;
+
namespace Msp {
namespace Net {
case AF_INET6:
return new Inet6Addr(reinterpret_cast<const sockaddr_in6 &>(sa));
default:
- throw InvalidParameterValue("Unknown address family");
+ throw invalid_argument("SockAddr::create");
}
}