From 0a1b3430450f274aee273a9f792a2d43f771b85f Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Thu, 13 Sep 2007 17:29:16 +0000 Subject: Use frameset begin/end flags for determining frameset boundaries. Set frameset & segment begin/end flags for content bearing methods (i.e. messages). git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@575377 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/client/ChannelHandler.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'cpp/src/qpid/client/ChannelHandler.cpp') diff --git a/cpp/src/qpid/client/ChannelHandler.cpp b/cpp/src/qpid/client/ChannelHandler.cpp index c9b7a68f38..49e7285a47 100644 --- a/cpp/src/qpid/client/ChannelHandler.cpp +++ b/cpp/src/qpid/client/ChannelHandler.cpp @@ -58,7 +58,7 @@ void ChannelHandler::incoming(AMQFrame& frame) if (body->getMethod()) handleMethod(body->getMethod()); else - throw new ConnectionException(504, "Channel not open."); + throw ConnectionException(504, "Channel not open for content."); } } @@ -68,7 +68,7 @@ void ChannelHandler::outgoing(AMQFrame& frame) frame.setChannel(id); out(frame); } else if (getState() == CLOSED) { - throw Exception("Channel not open"); + throw Exception(QPID_MSG("Channel not open, can't send " << frame)); } else if (getState() == CLOSED_BY_PEER) { throw ChannelException(code, text); } @@ -120,7 +120,7 @@ void ChannelHandler::handleMethod(AMQMethodBody* method) } //else just ignore it break; case CLOSED: - throw ConnectionException(504, "Channel not opened."); + throw ConnectionException(504, "Channel is closed."); default: throw Exception("Unexpected state encountered in ChannelHandler!"); } -- cgit v1.2.1