summaryrefslogtreecommitdiff
path: root/qpid/cpp
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2011-02-25 17:10:05 +0000
committerGordon Sim <gsim@apache.org>2011-02-25 17:10:05 +0000
commitff841dac2d711d55b1e5edeffbe7471a8d04fb95 (patch)
treeb89425dd8f0e4b99f4392d7ce13d2f9ca486b255 /qpid/cpp
parent667818f1417c742bc4c49465ef83562a693f0e49 (diff)
downloadqpid-python-ff841dac2d711d55b1e5edeffbe7471a8d04fb95.tar.gz
QPID-2326: correct exception code for unknown exchange type
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1074634 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp')
-rw-r--r--qpid/cpp/src/qpid/broker/SessionAdapter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qpid/cpp/src/qpid/broker/SessionAdapter.cpp b/qpid/cpp/src/qpid/broker/SessionAdapter.cpp
index 9e4516679e..b95bb196fd 100644
--- a/qpid/cpp/src/qpid/broker/SessionAdapter.cpp
+++ b/qpid/cpp/src/qpid/broker/SessionAdapter.cpp
@@ -114,7 +114,7 @@ void SessionAdapter::ExchangeHandlerImpl::declare(const string& exchange, const
"existing"));
}
}catch(UnknownExchangeTypeException& /*e*/){
- throw CommandInvalidException(QPID_MSG("Exchange type not implemented: " << type));
+ throw NotFoundException(QPID_MSG("Exchange type not implemented: " << type));
}
}
}