Commit 91afcb9c by Marcus Winter

base_cpp: added override for std::exception::what in embb::base::Exception

parent a9596507
...@@ -175,6 +175,16 @@ class Exception : public std::exception { ...@@ -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. * Returns an integer code representing the exception.
* *
* \return %Exception code * \return %Exception code
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment