diff options
author | Gordon Sim <gsim@apache.org> | 2008-03-10 17:47:06 +0000 |
---|---|---|
committer | Gordon Sim <gsim@apache.org> | 2008-03-10 17:47:06 +0000 |
commit | aeb6df01fad88c3202c9e30205ec60801d672d9c (patch) | |
tree | 3be9e9f0a4ae6292d584d53a760349ac5b096b09 /cpp/src/qpid/broker/SessionState.cpp | |
parent | 9348ffddf9dbeb1029a91f0804a5f3b1e22f8821 (diff) | |
download | qpid-python-aeb6df01fad88c3202c9e30205ec60801d672d9c.tar.gz |
Adjusted exception handling in c++ for final 0-10 path.
Converted some more tests.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@635618 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/broker/SessionState.cpp')
-rw-r--r-- | cpp/src/qpid/broker/SessionState.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/cpp/src/qpid/broker/SessionState.cpp b/cpp/src/qpid/broker/SessionState.cpp index 7d0d0dacfa..e2f18bc927 100644 --- a/cpp/src/qpid/broker/SessionState.cpp +++ b/cpp/src/qpid/broker/SessionState.cpp @@ -223,8 +223,13 @@ void SessionState::handle(AMQFrame& frame) } else { handleContent(frame, commandId); } - } catch(const ChannelException& e) { + } catch(const SessionException& e) { //TODO: better implementation of new exception handling mechanism + + //0-10 final changes the types of exceptions, 'model layer' + //exceptions will all be session exceptions regardless of + //current channel/connection classification + AMQMethodBody* m = frame.getMethod(); if (m) { getProxy().getExecution010().exception(e.code, commandId, m->amqpClassId(), m->amqpMethodId(), 0, e.what(), FieldTable()); |