summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/Exception.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/Ice/Exception.cpp')
-rw-r--r--cpp/src/Ice/Exception.cpp24
1 files changed, 18 insertions, 6 deletions
diff --git a/cpp/src/Ice/Exception.cpp b/cpp/src/Ice/Exception.cpp
index fe16488409e..170d9084c12 100644
--- a/cpp/src/Ice/Exception.cpp
+++ b/cpp/src/Ice/Exception.cpp
@@ -33,24 +33,36 @@ Ice::LocalException::LocalException(const char* file, int line) :
}
void
-Ice::UnknownLocalException::ice_print(ostream& out) const
+Ice::UnknownException::ice_print(ostream& out) const
{
Exception::ice_print(out);
- out << ":\nunknown local exception";
+ out << ":\nunknown exception";
+ if(!unknown.empty())
+ {
+ out << "\nunknown exception text:\n" << unknown;
+ }
}
void
-Ice::UnknownUserException::ice_print(ostream& out) const
+Ice::UnknownLocalException::ice_print(ostream& out) const
{
Exception::ice_print(out);
- out << ":\nunknown user exception";
+ out << ":\nunknown local exception";
+ if(!unknown.empty())
+ {
+ out << "\nunknown local exception text:\n" << unknown;
+ }
}
void
-Ice::UnknownException::ice_print(ostream& out) const
+Ice::UnknownUserException::ice_print(ostream& out) const
{
Exception::ice_print(out);
- out << ":\nunknown C++ exception";
+ out << ":\nunknown user exception";
+ if(!unknown.empty())
+ {
+ out << "\nunknown user exception text:\n" << unknown;
+ }
}
void