namespace folly {
+/**
+ * Error codes for non-throwing interface of IPAddress family of functions.
+ */
+enum class IPAddressFormatError { INVALID_IP, UNSUPPORTED_ADDR_FAMILY };
+
/**
* Exception for invalid IP addresses.
*/
IPAddressFormatException& operator=(IPAddressFormatException&&) = default;
~IPAddressFormatException() noexcept override {}
- const char* what(void) const noexcept override {
+ const char* what() const noexcept override {
return msg_.c_str();
}