[asterisk-scf-commits] asterisk-scf/release/ice-util-cpp.git branch "master" updated.
Commits to the Asterisk SCF project code repositories
asterisk-scf-commits at lists.digium.com
Wed Apr 27 11:07:08 CDT 2011
branch "master" has been updated
via 8d17d8dde8e1e7eed470d002fa32935bfa2d26a8 (commit)
from fd811e3d47f7b1ac5fb9532490a7c094ce22bf74 (commit)
Summary of changes:
SmartProxy/include/AsteriskSCF/SmartProxy.h | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
- Log -----------------------------------------------------------------
commit 8d17d8dde8e1e7eed470d002fa32935bfa2d26a8
Author: Brent Eagles <beagles at digium.com>
Date: Wed Apr 27 13:36:19 2011 -0230
Adding a catch block for ServiceNotFound exceptions in the initialize function.
diff --git a/SmartProxy/include/AsteriskSCF/SmartProxy.h b/SmartProxy/include/AsteriskSCF/SmartProxy.h
index 3ee09ce..e2c691a 100644
--- a/SmartProxy/include/AsteriskSCF/SmartProxy.h
+++ b/SmartProxy/include/AsteriskSCF/SmartProxy.h
@@ -148,12 +148,16 @@ public:
<< ") isn't of expected type";
}
}
- catch (const Ice::SyscallException& e)
+ catch (const Ice::SocketException& e)
{
(*mLogger)(Error) << "Exception locating "
<< mLocatorParams->category << ": " << e.what();
return 0;
}
+ catch(const AsteriskSCF::Core::Discovery::V1::ServiceNotFound&)
+ {
+ (*mLogger)(Error) << "Lookup failed";
+ }
if (mProxy == 0)
{
-----------------------------------------------------------------------
--
asterisk-scf/release/ice-util-cpp.git
More information about the asterisk-scf-commits
mailing list