diff options
author | Gordon Sim <gsim@apache.org> | 2010-07-01 16:49:22 +0000 |
---|---|---|
committer | Gordon Sim <gsim@apache.org> | 2010-07-01 16:49:22 +0000 |
commit | c54cd19d2d5b1e8ab5cc36ca7e1b1068b6ff7be2 (patch) | |
tree | 3f40bfadaed5cf72937b6a37ce63af9e66f549ca /cpp/src/qpid/client/amqp0_10/ConnectionImpl.cpp | |
parent | 21383bd52d2b2762dc4c0d09b52465cfa3856de4 (diff) | |
download | qpid-python-c54cd19d2d5b1e8ab5cc36ca7e1b1068b6ff7be2.tar.gz |
QPID-664: Translate exceptions to correct type when occuring on creating new session.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@959721 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/client/amqp0_10/ConnectionImpl.cpp')
-rw-r--r-- | cpp/src/qpid/client/amqp0_10/ConnectionImpl.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cpp/src/qpid/client/amqp0_10/ConnectionImpl.cpp b/cpp/src/qpid/client/amqp0_10/ConnectionImpl.cpp index 2fe55cc035..f3cc4f7cc1 100644 --- a/cpp/src/qpid/client/amqp0_10/ConnectionImpl.cpp +++ b/cpp/src/qpid/client/amqp0_10/ConnectionImpl.cpp @@ -213,6 +213,10 @@ qpid::messaging::Session ConnectionImpl::newSession(bool transactional, const st break; } catch (const qpid::TransportFailure&) { open(); + } catch (const qpid::SessionException& e) { + throw qpid::messaging::SessionError(e.what()); + } catch (const std::exception& e) { + throw qpid::messaging::MessagingException(e.what()); } } return impl; |