summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/sys
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2008-10-08 02:03:05 +0000
committerAlan Conway <aconway@apache.org>2008-10-08 02:03:05 +0000
commit8f38f773e173aa86d653996bc0b9d0abb160c846 (patch)
tree16aa42b4c310ae69989508c7030f6a6c0e1e19cb /cpp/src/qpid/sys
parent1896a5d32c87555877edd1dafc1bd34e3fcf5683 (diff)
downloadqpid-python-8f38f773e173aa86d653996bc0b9d0abb160c846.tar.gz
SessionImpl using ExceptionHolder to generate correctly typed exceptions..
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@702681 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/sys')
-rw-r--r--cpp/src/qpid/sys/ExceptionHolder.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/src/qpid/sys/ExceptionHolder.h b/cpp/src/qpid/sys/ExceptionHolder.h
index cfb971411e..fecaa73eea 100644
--- a/cpp/src/qpid/sys/ExceptionHolder.h
+++ b/cpp/src/qpid/sys/ExceptionHolder.h
@@ -52,7 +52,7 @@ class ExceptionHolder : public Raisable {
template <class Ex> ExceptionHolder& operator=(boost::shared_ptr<Ex> ex) { wrap(ex.release()); return *this; }
void raise() const { if (wrapper.get()) wrapper->raise() ; }
- std::string what() const { return wrapper->what(); }
+ std::string what() const { return wrapper.get() ? wrapper->what() : std::string(); }
bool empty() const { return !wrapper.get(); }
operator bool() const { return !empty(); }
void reset() { wrapper.reset(); }