diff --git a/fbpcf/exception/exceptions.h b/fbpcf/exception/exceptions.h index de4bc589..db1cfb1e 100644 --- a/fbpcf/exception/exceptions.h +++ b/fbpcf/exception/exceptions.h @@ -169,7 +169,7 @@ class ConnectionError : virtual public std::exception { public: explicit ConnectionError(std::string msg) : msg_{msg} {} - const char* what() const throw() override { + const char* what() const noexcept override { return msg_.c_str(); }