SF [2851197] IPAddress ctor throw keyword missing

This commit is contained in:
Aleksandar Fabijanic 2009-09-04 18:30:46 +00:00
parent 45122ef7e6
commit 5eb44ce36b

View File

@ -502,7 +502,8 @@ IPAddress::IPAddress(Family family): _pImpl(0)
else if (family == IPv6)
_pImpl = new IPv6AddressImpl();
#endif
else Poco::InvalidArgumentException("Invalid or unsupported address family passed to IPAddress()");
else
throw Poco::InvalidArgumentException("Invalid or unsupported address family passed to IPAddress()");
}