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.
*/
default;
IPAddressFormatException& operator=(IPAddressFormatException&&) = default;
- virtual ~IPAddressFormatException() noexcept {}
- virtual const char *what(void) const noexcept {
+ ~IPAddressFormatException() noexcept override {}
+ const char* what() const noexcept override {
return msg_.c_str();
}
default;
};
-} // folly
+} // namespace folly