diff options
Diffstat (limited to 'cpp')
-rw-r--r-- | cpp/demo/Freeze/library/Parser.cpp | 4 | ||||
-rw-r--r-- | cpp/demo/Freeze/phonebook/Parser.cpp | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/cpp/demo/Freeze/library/Parser.cpp b/cpp/demo/Freeze/library/Parser.cpp index 01399e5088f..0837d668eb7 100644 --- a/cpp/demo/Freeze/library/Parser.cpp +++ b/cpp/demo/Freeze/library/Parser.cpp @@ -197,6 +197,10 @@ Parser::printCurrent() cout << "no current book" << endl; } } + catch(const Ice::ObjectNotExistException&) + { + cout << "current book no longer exists" << endl; + } catch(const Exception& ex) { ostringstream s; diff --git a/cpp/demo/Freeze/phonebook/Parser.cpp b/cpp/demo/Freeze/phonebook/Parser.cpp index 4d476d3484d..91bbcac5f2c 100644 --- a/cpp/demo/Freeze/phonebook/Parser.cpp +++ b/cpp/demo/Freeze/phonebook/Parser.cpp @@ -137,6 +137,10 @@ Parser::printCurrent() cout << "no current contact" << endl; } } + catch(const Ice::ObjectNotExistException&) + { + cout << "current contact no longer exists" << endl; + } catch(const DatabaseException& ex) { error(ex.message); |