From 1c86294add5cbb640aac7f458c4de693de48dd9f Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Thu, 24 Apr 2008 21:07:34 +0000 Subject: Generate c++ code from final 0-10 spec git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@651423 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/client/Channel.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'cpp/src/qpid/client/Channel.cpp') diff --git a/cpp/src/qpid/client/Channel.cpp b/cpp/src/qpid/client/Channel.cpp index f32b5e2614..3bcba8983c 100644 --- a/cpp/src/qpid/client/Channel.cpp +++ b/cpp/src/qpid/client/Channel.cpp @@ -32,6 +32,7 @@ #include #include #include "qpid/framing/all_method_bodies.h" +#include "qpid/framing/reply_exceptions.h" using namespace std; using namespace boost; @@ -75,7 +76,7 @@ void Channel::open(const Session& s) { Mutex::ScopedLock l(stopLock); if (isOpen()) - throw ChannelBusyException(); + throw SessionBusyException(); active = true; session = s; if(isTransactional()) { @@ -146,7 +147,7 @@ void Channel::consume( Mutex::ScopedLock l(lock); ConsumerMap::iterator i = consumers.find(tag); if (i != consumers.end()) - throw NotAllowedException(QPID_MSG("Consumer already exists with tag " << tag )); + throw PreconditionFailedException(QPID_MSG("Consumer already exists with tag " << tag )); Consumer& c = consumers[tag]; c.listener = listener; c.ackMode = ackMode; -- cgit v1.2.1