summaryrefslogtreecommitdiff
path: root/cpp/demo/Freeze/library/Parser.cpp
diff options
context:
space:
mode:
authorMark Spruiell <mes@zeroc.com>2003-05-25 14:38:41 +0000
committerMark Spruiell <mes@zeroc.com>2003-05-25 14:38:41 +0000
commit6c3d7563a55cd990c61ec471028f5068918c4994 (patch)
treedc7e62cb6bb20bb86a1c20327cb3a8db9fccbf03 /cpp/demo/Freeze/library/Parser.cpp
parentRemoved Precompiled Headers (PCH) (diff)
downloadice-6c3d7563a55cd990c61ec471028f5068918c4994.tar.bz2
ice-6c3d7563a55cd990c61ec471028f5068918c4994.tar.xz
ice-6c3d7563a55cd990c61ec471028f5068918c4994.zip
minor fixes
Diffstat (limited to 'cpp/demo/Freeze/library/Parser.cpp')
-rw-r--r--cpp/demo/Freeze/library/Parser.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/cpp/demo/Freeze/library/Parser.cpp b/cpp/demo/Freeze/library/Parser.cpp
index 0837d668eb7..6d866a30665 100644
--- a/cpp/demo/Freeze/library/Parser.cpp
+++ b/cpp/demo/Freeze/library/Parser.cpp
@@ -234,6 +234,10 @@ Parser::rentCurrent(const list<string>& args)
{
cout << "the book has already been rented." << endl;
}
+ catch(const Ice::ObjectNotExistException&)
+ {
+ cout << "current book no longer exists" << endl;
+ }
catch(const DatabaseException& ex)
{
error(ex.message);
@@ -265,6 +269,10 @@ Parser::returnCurrent()
{
cout << "the book is not currently rented." << endl;
}
+ catch(const Ice::ObjectNotExistException&)
+ {
+ cout << "current book no longer exists" << endl;
+ }
catch(const DatabaseException& ex)
{
error(ex.message);
@@ -292,6 +300,10 @@ Parser::removeCurrent()
cout << "no current book" << endl;
}
}
+ catch(const Ice::ObjectNotExistException&)
+ {
+ cout << "current book no longer exists" << endl;
+ }
catch(const DatabaseException& ex)
{
error(ex.message);