From 0e565c9d49f9483b5fddef1afb56355ebf6e1125 Mon Sep 17 00:00:00 2001 From: Benoit Foucher Date: Fri, 11 May 2007 16:26:21 +0000 Subject: Backed out previous fix for bug 2153 as I'm not convinced it's correct. --- cpp/src/Ice/Exception.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'cpp/src/Ice/Exception.cpp') diff --git a/cpp/src/Ice/Exception.cpp b/cpp/src/Ice/Exception.cpp index dfa9e70b471..9c79f13c947 100644 --- a/cpp/src/Ice/Exception.cpp +++ b/cpp/src/Ice/Exception.cpp @@ -574,6 +574,17 @@ Ice::StringConversionException::ice_print(ostream& out) const } } +void +Ice::EncapsulationException::ice_print(ostream& out) const +{ + Exception::ice_print(out); + out << ":\nprotocol error: illegal encapsulation"; + if(!reason.empty()) + { + out << ":\n" << reason; + } +} + void Ice::NegativeSizeException::ice_print(ostream& out) const { -- cgit v1.2.3