diff --git a/include/pcp-cpp/exception.hpp b/include/pcp-cpp/exception.hpp index 8474a04..c387598 100644 --- a/include/pcp-cpp/exception.hpp +++ b/include/pcp-cpp/exception.hpp @@ -34,7 +34,8 @@ class exception : public std::exception { } exception(const pcp::exception &other) - : pm_error_code(other.error_code()), + : std::exception(other), + pm_error_code(other.error_code()), message(other.what()) { }