diff options
Diffstat (limited to 'cpp/src/Ice/Service.cpp')
-rw-r--r-- | cpp/src/Ice/Service.cpp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/cpp/src/Ice/Service.cpp b/cpp/src/Ice/Service.cpp index 324abfc1115..bec4df2ded3 100644 --- a/cpp/src/Ice/Service.cpp +++ b/cpp/src/Ice/Service.cpp @@ -507,6 +507,11 @@ Ice::Service::shutdown() // Expected if the service communicator is being destroyed. // } + catch(const Ice::Exception& ex) + { + ServiceWarning warn(this); + warn << "exception during shutdown:\n" << ex; + } catch(const std::exception& ex) { ServiceWarning warn(this); @@ -837,6 +842,11 @@ Ice::Service::run(int argc, const char* const argv[], const InitializationData& } } } + catch(const Ice::Exception& ex) + { + ServiceError err(this); + err << "service terminating after catching exception:\n" << ex; + } catch(const std::exception& ex) { ServiceError err(this); @@ -1359,6 +1369,11 @@ Ice::Service::serviceMain(int argc, const wchar_t* const argv[]) status = tmpStatus; } } + catch(const Ice::Exception& ex) + { + ServiceError err(this); + err << "service terminating after catching exception:\n" << ex; + } catch(const std::exception& ex) { ServiceError err(this); @@ -1793,6 +1808,12 @@ Ice::Service::runDaemon(int argc, char* argv[], const InitializationData& initDa } } } + catch(const Ice::Exception& ex) + { + ServiceError err(this); + err << "service terminating after catching exception:\n" << ex; + errMsg = err.str(); + } catch(const std::exception& ex) { ServiceError err(this); |