Summary: Looks like the test explicitly looks for InvalidAddressFamilyException. I don't think any users are depending on this particular error type either way, I just switched it to InvalidAddressFamilyException
Test Plan:
unit tests
Reviewed By: ldbrandy@fb.com
Subscribers: doug, njormrod
FB internal diff:
D1570363
Tasks:
5153819
const folly::IPAddress& SocketAddress::getIPAddress() const {
auto family = getFamily();
if (family != AF_INET && family != AF_INET6) {
- throw std::invalid_argument("getIPAddress called on a non-ip address");
+ throw InvalidAddressFamilyException(family);
}
return storage_.addr;
}