diff options
| author | Alan Conway <aconway@apache.org> | 2007-01-31 19:07:04 +0000 |
|---|---|---|
| committer | Alan Conway <aconway@apache.org> | 2007-01-31 19:07:04 +0000 |
| commit | 9cdf50e9bbf4aae222600245691f9b1d3acb3147 (patch) | |
| tree | 0784a9860824c0d144e1615ad1f655ac2dea5916 /cpp/lib/client/ResponseHandler.cpp | |
| parent | 754f8903943233604661b91b53defe39120e6ad5 (diff) | |
| download | qpid-python-9cdf50e9bbf4aae222600245691f9b1d3acb3147.tar.gz | |
* framing/ChannelAdapter.cpp: Enable channel state assertions.
* common/Exception & others: Exception template constructors that
accept any object that supports ostream operator<< as messages.
E.g. can pass a boost::format object directly, no need to call str().
* Fixed up various exception messges to use boost::format.
* framing/Requester.cpp: Exception on invalid response id.
* client/Connection.h: Remove extra getVersion() function.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/qpid.0-9@501948 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/lib/client/ResponseHandler.cpp')
| -rw-r--r-- | cpp/lib/client/ResponseHandler.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/cpp/lib/client/ResponseHandler.cpp b/cpp/lib/client/ResponseHandler.cpp index 8950138f5e..ea234ac321 100644 --- a/cpp/lib/client/ResponseHandler.cpp +++ b/cpp/lib/client/ResponseHandler.cpp @@ -66,10 +66,8 @@ void ResponseHandler::receive(ClassId c, MethodId m) { if(!validate(response->amqpClassId(), response->amqpMethodId())) { THROW_QPID_ERROR( PROTOCOL_ERROR, - (boost::format( - "Expected class:method %d:%d, got %d:%d") - % c % m % response->amqpClassId() % response->amqpMethodId() - ).str()); + boost::format("Expected class:method %d:%d, got %d:%d") + % c % m % response->amqpClassId() % response->amqpMethodId()); } } |
