summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/Exception.cpp
diff options
context:
space:
mode:
authorMarc Laukien <marc@zeroc.com>2002-09-29 17:08:25 +0000
committerMarc Laukien <marc@zeroc.com>2002-09-29 17:08:25 +0000
commit7459a281dc81f573246d99b0f863ef0065e4e6ad (patch)
tree2c14f30e3e3c8f40efa795631427a6a795b34d65 /cpp/src/Ice/Exception.cpp
parentminor changes for gcc 3.2 (diff)
downloadice-7459a281dc81f573246d99b0f863ef0065e4e6ad.tar.bz2
ice-7459a281dc81f573246d99b0f863ef0065e4e6ad.tar.xz
ice-7459a281dc81f573246d99b0f863ef0065e4e6ad.zip
lots and lots of fixes
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