From 3df4ce2e8ef6f2360e31344661f788808c14cc37 Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Fri, 25 Feb 2011 17:10:05 +0000 Subject: QPID-2326: correct exception code for unknown exchange type git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1074634 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/broker/SessionAdapter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cpp/src') diff --git a/cpp/src/qpid/broker/SessionAdapter.cpp b/cpp/src/qpid/broker/SessionAdapter.cpp index 9e4516679e..b95bb196fd 100644 --- a/cpp/src/qpid/broker/SessionAdapter.cpp +++ b/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)); } } } -- cgit v1.2.1