Fix SignalHandlerTest with ASAN
[folly.git] / folly / IPAddressException.h
index 82d5d0440badcea991ee776b06860ffaf240c6a5..d1830ba61737ea56cdb5b8b1fdbd25e4525bc29b 100644 (file)
 
 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.
  */
@@ -38,7 +43,7 @@ class IPAddressFormatException : public std::exception {
   IPAddressFormatException& operator=(IPAddressFormatException&&) = default;
 
   ~IPAddressFormatException() noexcept override {}
-  const char* what(void) const noexcept override {
+  const char* what() const noexcept override {
     return msg_.c_str();
   }