You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by gs...@apache.org on 2007/01/22 12:49:40 UTC

svn commit: r498591 - /incubator/qpid/trunk/qpid/cpp/lib/broker/SessionHandlerImpl.cpp

Author: gsim
Date: Mon Jan 22 03:49:39 2007
New Revision: 498591

URL: http://svn.apache.org/viewvc?view=rev&rev=498591
Log:
Fixed creation of error message for unknown channel.


Modified:
    incubator/qpid/trunk/qpid/cpp/lib/broker/SessionHandlerImpl.cpp

Modified: incubator/qpid/trunk/qpid/cpp/lib/broker/SessionHandlerImpl.cpp
URL: http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/cpp/lib/broker/SessionHandlerImpl.cpp?view=diff&rev=498591&r1=498590&r2=498591
==============================================================================
--- incubator/qpid/trunk/qpid/cpp/lib/broker/SessionHandlerImpl.cpp (original)
+++ incubator/qpid/trunk/qpid/cpp/lib/broker/SessionHandlerImpl.cpp Mon Jan 22 03:49:39 2007
@@ -19,6 +19,7 @@
  *
  */
 #include <iostream>
+#include <sstream>
 #include <SessionHandlerImpl.h>
 #include <FanOutExchange.h>
 #include <HeadersExchange.h>
@@ -64,7 +65,9 @@
 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;
 }