summaryrefslogtreecommitdiff
path: root/cpp/lib/broker/BrokerAdapter.cpp
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2007-02-09 14:03:16 +0000
committerGordon Sim <gsim@apache.org>2007-02-09 14:03:16 +0000
commit30279598631d3a225e895b6ccbc1befff88b55f8 (patch)
treebe3cf1e0c40a36f5c1831ef4c533758576e7e768 /cpp/lib/broker/BrokerAdapter.cpp
parent33d02c5cbe67fb113e1b0f3b370dae4e3a211b6d (diff)
downloadqpid-python-30279598631d3a225e895b6ccbc1befff88b55f8.tar.gz
'Corrected' error code (507 no longer exists in the spec so using what java has i.e. 530).
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/qpid.0-9@505298 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/lib/broker/BrokerAdapter.cpp')
-rw-r--r--cpp/lib/broker/BrokerAdapter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/lib/broker/BrokerAdapter.cpp b/cpp/lib/broker/BrokerAdapter.cpp
index 012ec052e8..8b081874fc 100644
--- a/cpp/lib/broker/BrokerAdapter.cpp
+++ b/cpp/lib/broker/BrokerAdapter.cpp
@@ -106,7 +106,7 @@ void BrokerAdapter::BrokerAdapter::ExchangeHandlerImpl::declare(const MethodCont
std::pair<Exchange::shared_ptr, bool> response = broker.getExchanges().declare(exchange, type);
if(!response.second && response.first->getType() != type){
throw ConnectionException(
- 507,
+ 530,
"Exchange already declared to be of type "
+ response.first->getType() + ", requested " + type);
}