diff --git a/base_cpp/include/embb/base/exceptions.h b/base_cpp/include/embb/base/exceptions.h index 7d503bf..b3ce6b6 100644 --- a/base_cpp/include/embb/base/exceptions.h +++ b/base_cpp/include/embb/base/exceptions.h @@ -175,6 +175,16 @@ class Exception : public std::exception { } /** + * Returns the error message. + * This is here for compatibility with std::exception. + * + * \return Pointer to error message + */ + virtual const char* what() const throw() { + return What(); + } + + /** * Returns an integer code representing the exception. * * \return %Exception code