summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/client/ChannelHandler.cpp
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2007-09-13 17:29:16 +0000
committerGordon Sim <gsim@apache.org>2007-09-13 17:29:16 +0000
commit0a1b3430450f274aee273a9f792a2d43f771b85f (patch)
tree71be3bc1a920a568c0680f8e8a5e802c1c3bee8d /cpp/src/qpid/client/ChannelHandler.cpp
parente00a1cfa3881e3bb8aadfecdf502f17903e319b1 (diff)
downloadqpid-python-0a1b3430450f274aee273a9f792a2d43f771b85f.tar.gz
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
Diffstat (limited to 'cpp/src/qpid/client/ChannelHandler.cpp')
-rw-r--r--cpp/src/qpid/client/ChannelHandler.cpp6
1 files changed, 3 insertions, 3 deletions
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!");
}