diff options
author | Benoit Foucher <benoit@zeroc.com> | 2015-05-13 08:17:48 +0200 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2015-05-13 08:17:48 +0200 |
commit | 39554a9b17de1af3c889a0d7c0a843d96494ced8 (patch) | |
tree | bb4ad6678c4c63fb1d9106249cf0ba99d69ef1f3 /cpp | |
parent | Update PHP_BIN_HOME setting for Windows x64 (diff) | |
download | ice-39554a9b17de1af3c889a0d7c0a843d96494ced8.tar.bz2 ice-39554a9b17de1af3c889a0d7c0a843d96494ced8.tar.xz ice-39554a9b17de1af3c889a0d7c0a843d96494ced8.zip |
Fixed ICE-6498: replaced protocol error with encoding error un UnsupportedEncodingException message
Diffstat (limited to 'cpp')
-rw-r--r-- | cpp/src/Ice/Exception.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/cpp/src/Ice/Exception.cpp b/cpp/src/Ice/Exception.cpp index 16c3a3addaa..7efe9309ee9 100644 --- a/cpp/src/Ice/Exception.cpp +++ b/cpp/src/Ice/Exception.cpp @@ -102,7 +102,7 @@ throwMarshalException(const char* file, int line, const string& reason) } } -void +void Ice::UserException::__write(::IceInternal::BasicStream* os) const { os->startWriteException(0); @@ -110,7 +110,7 @@ Ice::UserException::__write(::IceInternal::BasicStream* os) const os->endWriteException(); } -void +void Ice::UserException::__read(::IceInternal::BasicStream* is) { is->startReadException(); @@ -118,7 +118,7 @@ Ice::UserException::__read(::IceInternal::BasicStream* is) is->endReadException(false); } -void +void Ice::UserException::__write(const Ice::OutputStreamPtr& os) const { os->startException(0); @@ -126,7 +126,7 @@ Ice::UserException::__write(const Ice::OutputStreamPtr& os) const os->endException(); } -void +void Ice::UserException::__read(const Ice::InputStreamPtr& is) { is->startException(); @@ -134,13 +134,13 @@ Ice::UserException::__read(const Ice::InputStreamPtr& is) is->endException(false); } -void +void Ice::UserException::__writeImpl(const Ice::OutputStreamPtr&) const { throw MarshalException(__FILE__, __LINE__, "user exception was not generated with stream support"); } -void +void Ice::UserException::__readImpl(const Ice::InputStreamPtr&) { throw MarshalException(__FILE__, __LINE__, "user exception was not generated with stream support"); @@ -557,7 +557,7 @@ void Ice::UnsupportedEncodingException::ice_print(ostream& out) const { Exception::ice_print(out); - out << ":\nprotocol error: unsupported encoding version: " << bad; + out << ":\nencoding error: unsupported encoding version: " << bad; out << "\n(can only support encodings compatible with version " << supported << ")"; if(!reason.empty()) { @@ -706,19 +706,19 @@ Ice::NoObjectFactoryException::ice_print(ostream& out) const { out << ":\n" << reason; } -} +} void Ice::UnexpectedObjectException::ice_print(ostream& out) const { Exception::ice_print(out); - out << ":\nunexpected class instance of type `" << type << + out << ":\nunexpected class instance of type `" << type << "'; expected instance of type `" << expectedType << "'"; if(!reason.empty()) { out << ":\n" << reason; } -} +} void Ice::MemoryLimitException::ice_print(ostream& out) const |