From b0f3edfa2a68ccf34aa7a555d0d37c2e17b8421b Mon Sep 17 00:00:00 2001 From: Alan Conway Date: Fri, 9 May 2008 18:46:17 +0000 Subject: Support for 0-10 sessions, not yet integrated. Misc minor fixes. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@654913 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/Exception.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'cpp/src/qpid/Exception.cpp') 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; -- cgit v1.2.1