summaryrefslogtreecommitdiff
path: root/cpp/demo/Freeze/phonebook/Parser.cpp
diff options
context:
space:
mode:
authorMarc Laukien <marc@zeroc.com>2001-10-10 21:56:32 +0000
committerMarc Laukien <marc@zeroc.com>2001-10-10 21:56:32 +0000
commit8bc95821a3163f119f5e44ff7d6510cde734ea4b (patch)
tree3e6b89c017bce15ec8c81db9931ec46aecb897c8 /cpp/demo/Freeze/phonebook/Parser.cpp
parentmore fixes (diff)
downloadice-8bc95821a3163f119f5e44ff7d6510cde734ea4b.tar.bz2
ice-8bc95821a3163f119f5e44ff7d6510cde734ea4b.tar.xz
ice-8bc95821a3163f119f5e44ff7d6510cde734ea4b.zip
more exception stuff
Diffstat (limited to 'cpp/demo/Freeze/phonebook/Parser.cpp')
-rw-r--r--cpp/demo/Freeze/phonebook/Parser.cpp36
1 files changed, 27 insertions, 9 deletions
diff --git a/cpp/demo/Freeze/phonebook/Parser.cpp b/cpp/demo/Freeze/phonebook/Parser.cpp
index 1296bf6949b..b4a6ba24a3f 100644
--- a/cpp/demo/Freeze/phonebook/Parser.cpp
+++ b/cpp/demo/Freeze/phonebook/Parser.cpp
@@ -73,7 +73,9 @@ Parser::addContacts(const list<string>& args)
}
catch(const LocalException& ex)
{
- error(ex.toString());
+ ostringstream s;
+ s << ex;
+ error(s.str());
}
}
@@ -99,7 +101,9 @@ Parser::findContacts(const list<string>& args)
}
catch(const LocalException& ex)
{
- error(ex.toString());
+ ostringstream s;
+ s << ex;
+ error(s.str());
}
}
@@ -136,7 +140,9 @@ Parser::printCurrent()
}
catch(const LocalException& ex)
{
- error(ex.toString());
+ ostringstream s;
+ s << ex;
+ error(s.str());
}
}
@@ -167,7 +173,9 @@ Parser::setCurrentName(const list<string>& args)
}
catch(const LocalException& ex)
{
- error(ex.toString());
+ ostringstream s;
+ s << ex;
+ error(s.str());
}
}
@@ -198,7 +206,9 @@ Parser::setCurrentAddress(const list<string>& args)
}
catch(const LocalException& ex)
{
- error(ex.toString());
+ ostringstream s;
+ s << ex;
+ error(s.str());
}
}
@@ -229,7 +239,9 @@ Parser::setCurrentPhone(const list<string>& args)
}
catch(const LocalException& ex)
{
- error(ex.toString());
+ ostringstream s;
+ s << ex;
+ error(s.str());
}
}
@@ -254,7 +266,9 @@ Parser::removeCurrent()
}
catch(const LocalException& ex)
{
- error(ex.toString());
+ ostringstream s;
+ s << ex;
+ error(s.str());
}
}
@@ -277,7 +291,9 @@ Parser::setEvictorSize(const list<string>& args)
}
catch(const LocalException& ex)
{
- error(ex.toString());
+ ostringstream s;
+ s << ex;
+ error(s.str());
}
}
@@ -294,7 +310,9 @@ Parser::shutdown()
}
catch(const LocalException& ex)
{
- error(ex.toString());
+ ostringstream s;
+ s << ex;
+ error(s.str());
}
}