summaryrefslogtreecommitdiff
path: root/cpp/demo/Freeze/library/Parser.cpp
diff options
context:
space:
mode:
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);