summaryrefslogtreecommitdiff
path: root/cpp/demo/Freeze/phonebook/Parser.cpp
diff options
context:
space:
mode:
authorMatthew Newhook <matthew@zeroc.com>2002-03-08 13:47:12 +0000
committerMatthew Newhook <matthew@zeroc.com>2002-03-08 13:47:12 +0000
commit2ee86c01bdce8ff4fb14120f9603e2d4382a32af (patch)
tree9ef026ad20f848bf3f4217eebd478804e3740f9f /cpp/demo/Freeze/phonebook/Parser.cpp
parentadding constructors to holder classes (diff)
downloadice-2ee86c01bdce8ff4fb14120f9603e2d4382a32af.tar.bz2
ice-2ee86c01bdce8ff4fb14120f9603e2d4382a32af.tar.xz
ice-2ee86c01bdce8ff4fb14120f9603e2d4382a32af.zip
updates for Freeze.
Diffstat (limited to 'cpp/demo/Freeze/phonebook/Parser.cpp')
-rw-r--r--cpp/demo/Freeze/phonebook/Parser.cpp21
1 files changed, 8 insertions, 13 deletions
diff --git a/cpp/demo/Freeze/phonebook/Parser.cpp b/cpp/demo/Freeze/phonebook/Parser.cpp
index 86da2f6ad6c..ef22b5b665c 100644
--- a/cpp/demo/Freeze/phonebook/Parser.cpp
+++ b/cpp/demo/Freeze/phonebook/Parser.cpp
@@ -18,7 +18,6 @@
using namespace std;
using namespace Ice;
-using namespace Freeze;
extern FILE* yyin;
@@ -67,7 +66,7 @@ Parser::addContacts(const list<string>& args)
cout << "added new contact for `" << *p << "'" << endl;
}
}
- catch(const DBException& ex)
+ catch(const DatabaseException& ex)
{
error(ex.message);
}
@@ -95,7 +94,7 @@ Parser::findContacts(const list<string>& args)
cout << "number of contacts found: " << _foundContacts.size() << endl;
printCurrent();
}
- catch(const DBException& ex)
+ catch(const DatabaseException& ex)
{
error(ex.message);
}
@@ -134,7 +133,7 @@ Parser::printCurrent()
cout << "no current contact" << endl;
}
}
- catch(const DBException& ex)
+ catch(const DatabaseException& ex)
{
error(ex.message);
}
@@ -167,7 +166,7 @@ Parser::setCurrentName(const list<string>& args)
cout << "no current contact" << endl;
}
}
- catch(const DBException& ex)
+ catch(const DatabaseException& ex)
{
error(ex.message);
}
@@ -200,7 +199,7 @@ Parser::setCurrentAddress(const list<string>& args)
cout << "no current contact" << endl;
}
}
- catch(const DBException& ex)
+ catch(const DatabaseException& ex)
{
error(ex.message);
}
@@ -233,7 +232,7 @@ Parser::setCurrentPhone(const list<string>& args)
cout << "no current contact" << endl;
}
}
- catch(const DBException& ex)
+ catch(const DatabaseException& ex)
{
error(ex.message);
}
@@ -260,7 +259,7 @@ Parser::removeCurrent()
cout << "no current contact" << endl;
}
}
- catch(const DBException& ex)
+ catch(const DatabaseException& ex)
{
error(ex.message);
}
@@ -285,7 +284,7 @@ Parser::setEvictorSize(const list<string>& args)
{
_phoneBook->setEvictorSize(atoi(args.front().c_str()));
}
- catch(const DBException& ex)
+ catch(const DatabaseException& ex)
{
error(ex.message);
}
@@ -304,10 +303,6 @@ Parser::shutdown()
{
_phoneBook->shutdown();
}
- catch(const DBException& ex)
- {
- error(ex.message);
- }
catch(const Exception& ex)
{
ostringstream s;