diff options
Diffstat (limited to 'cpp/src/qpid/Exception.cpp')
-rw-r--r-- | cpp/src/qpid/Exception.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cpp/src/qpid/Exception.cpp b/cpp/src/qpid/Exception.cpp index a69955c9dc..8176d92cac 100644 --- a/cpp/src/qpid/Exception.cpp +++ b/cpp/src/qpid/Exception.cpp @@ -34,13 +34,15 @@ std::string strError(int err) { } Exception::Exception(const std::string& msg) throw() : message(msg) { - QPID_LOG(debug, "Exception thrown: " << message); + QPID_LOG(debug, "Exception: " << message); } Exception::~Exception() throw() {} std::string Exception::getPrefix() const { return "Exception"; } +std::string Exception::getMessage() const { return message; } + const char* Exception::what() const throw() { if (whatStr.empty()) whatStr = getPrefix() + ": " + message; |