diff options
author | Gordon Sim <gsim@apache.org> | 2007-01-22 11:49:39 +0000 |
---|---|---|
committer | Gordon Sim <gsim@apache.org> | 2007-01-22 11:49:39 +0000 |
commit | cfa1cb0482e2f851125608e6eada7f48a33603eb (patch) | |
tree | 265e2655471ab110f822a160634b5be5be98fef5 /qpid/cpp/lib/broker/SessionHandlerImpl.cpp | |
parent | 17d75aeca80e1721a7fac5787d1f2dcd51c84f6e (diff) | |
download | qpid-python-cfa1cb0482e2f851125608e6eada7f48a33603eb.tar.gz |
Fixed creation of error message for unknown channel.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@498591 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/lib/broker/SessionHandlerImpl.cpp')
-rw-r--r-- | qpid/cpp/lib/broker/SessionHandlerImpl.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/qpid/cpp/lib/broker/SessionHandlerImpl.cpp b/qpid/cpp/lib/broker/SessionHandlerImpl.cpp index da49a94d68..26cdfebad2 100644 --- a/qpid/cpp/lib/broker/SessionHandlerImpl.cpp +++ b/qpid/cpp/lib/broker/SessionHandlerImpl.cpp @@ -19,6 +19,7 @@ * */ #include <iostream> +#include <sstream> #include <SessionHandlerImpl.h> #include <FanOutExchange.h> #include <HeadersExchange.h> @@ -64,7 +65,9 @@ SessionHandlerImpl::~SessionHandlerImpl(){ Channel* SessionHandlerImpl::getChannel(u_int16_t channel){ channel_iterator i = channels.find(channel); if(i == channels.end()){ - throw ConnectionException(504, "Unknown channel: " + channel); + std::stringstream out; + out << "Unknown channel: " << channel; + throw ConnectionException(504, out.str()); } return i->second; } |