summaryrefslogtreecommitdiff
path: root/cpp/src
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
commit3df4ce2e8ef6f2360e31344661f788808c14cc37 (patch)
tree384b1c3d10176bad196a32c90b1788b41dbc037f /cpp/src
parentb89260805d612679ae6ef03d491873d671d53749 (diff)
downloadqpid-python-3df4ce2e8ef6f2360e31344661f788808c14cc37.tar.gz
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
Diffstat (limited to 'cpp/src')
-rw-r--r--cpp/src/qpid/broker/SessionAdapter.cpp2
1 files changed, 1 insertions, 1 deletions
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));
}
}
}