summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/client/ChannelHandler.cpp
diff options
context:
space:
mode:
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!");
}