diff options
author | Marc Laukien <marc@zeroc.com> | 2001-10-12 00:50:11 +0000 |
---|---|---|
committer | Marc Laukien <marc@zeroc.com> | 2001-10-12 00:50:11 +0000 |
commit | f6cebb3284ed16cb3b8940c69b8b475855f8f0df (patch) | |
tree | 2df05a2a8b279661b964f230f23f36255cad0a8c /cpp/demo/Ice/value/Client.cpp | |
parent | slicified local exceptions (diff) | |
download | ice-f6cebb3284ed16cb3b8940c69b8b475855f8f0df.tar.bz2 ice-f6cebb3284ed16cb3b8940c69b8b475855f8f0df.tar.xz ice-f6cebb3284ed16cb3b8940c69b8b475855f8f0df.zip |
fixes
Diffstat (limited to 'cpp/demo/Ice/value/Client.cpp')
-rw-r--r-- | cpp/demo/Ice/value/Client.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/cpp/demo/Ice/value/Client.cpp b/cpp/demo/Ice/value/Client.cpp index 40946464496..87acdbef932 100644 --- a/cpp/demo/Ice/value/Client.cpp +++ b/cpp/demo/Ice/value/Client.cpp @@ -140,7 +140,8 @@ run(int argc, char* argv[], const Ice::CommunicatorPtr& communicator) cout << '\n' << "Finally, we try the same again, but instead of returning the\n" - << "derived object, we throw it as an exception.\n" + << "derived object, we throw an exception containing the derived\n" + << "object.\n" << "[press enter]\n"; cin.getline(&c, 1); @@ -148,10 +149,9 @@ run(int argc, char* argv[], const Ice::CommunicatorPtr& communicator) { initial->throwDerivedPrinter(); } - catch(const PrinterPtrE& ex) + catch(const DerivedPrinterException& ex) { - const PrinterPtr& p = ex; - derived = DerivedPrinterPtr::dynamicCast(p); + derived = ex.derived; assert(derived); } @@ -177,7 +177,7 @@ main(int argc, char* argv[]) communicator = Ice::initializeWithProperties(properties); status = run(argc, argv, communicator); } - catch(const Ice::LocalException& ex) + catch(const Ice::Exception& ex) { cerr << ex << endl; status = EXIT_FAILURE; @@ -189,7 +189,7 @@ main(int argc, char* argv[]) { communicator->destroy(); } - catch(const Ice::LocalException& ex) + catch(const Ice::Exception& ex) { cerr << ex << endl; status = EXIT_FAILURE; |