diff options
author | Benoit Foucher <benoit@zeroc.com> | 2007-05-04 09:29:36 +0000 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2007-05-04 09:29:36 +0000 |
commit | 370561355363d554a57fddae057dd7365fe055ac (patch) | |
tree | 183acc5269fe916e6459fd03310c5d53e21c6224 /cppe/src/IceE/Connection.cpp | |
parent | Bug 1022. (diff) | |
download | ice-370561355363d554a57fddae057dd7365fe055ac.tar.bz2 ice-370561355363d554a57fddae057dd7365fe055ac.tar.xz ice-370561355363d554a57fddae057dd7365fe055ac.zip |
Fixed bug 2177
Diffstat (limited to 'cppe/src/IceE/Connection.cpp')
-rwxr-xr-x | cppe/src/IceE/Connection.cpp | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/cppe/src/IceE/Connection.cpp b/cppe/src/IceE/Connection.cpp index 8972e0f52c2..ede6a022e86 100755 --- a/cppe/src/IceE/Connection.cpp +++ b/cppe/src/IceE/Connection.cpp @@ -906,9 +906,7 @@ Ice::Connection::setAdapter(const ObjectAdapterPtr& adapter) if(_blocking) { - FeatureNotSupportedException ex(__FILE__, __LINE__); - ex.unsupportedFeature = "setAdapter with blocking connection"; - throw ex; + throw FeatureNotSupportedException(__FILE__, __LINE__, "setAdapter with blocking connection"); } // @@ -947,7 +945,7 @@ Ice::Connection::createProxy(const Identity& ident) const // vector<ConnectionPtr> connections; connections.push_back(const_cast<Connection*>(this)); - ReferencePtr ref = _instance->referenceFactory()->create(ident, Ice::Context(), "", Reference::ModeTwoway, + ReferencePtr ref = _instance->referenceFactory()->create(ident, Ice::Context(), "", ReferenceModeTwoway, connections); return _instance->proxyFactory()->referenceToProxy(ref); } @@ -1518,9 +1516,7 @@ Ice::Connection::readStreamAndParseMessage(IceInternal::BasicStream& stream, Int const Byte messageType = header[8]; if(header[9] == 2) { - FeatureNotSupportedException ex(__FILE__, __LINE__); - ex.unsupportedFeature = "compression"; - throw ex; + throw FeatureNotSupportedException(__FILE__, __LINE__, "compression"); } Int size; |