[asterisk-scf-commits] asterisk-scf/integration/ice-util-cpp.git branch "route_replica" updated.

Commits to the Asterisk SCF project code repositories asterisk-scf-commits at lists.digium.com
Wed Apr 27 11:31:29 CDT 2011


branch "route_replica" has been updated
       via  a0a5f342325fd92ec12071e44fce1d67310c99e1 (commit)
      from  1b336916985b349d629b0366bfb015ca45ddd038 (commit)

Summary of changes:
 SmartProxy/include/AsteriskSCF/SmartProxy.h |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)


- Log -----------------------------------------------------------------
commit a0a5f342325fd92ec12071e44fce1d67310c99e1
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/integration/ice-util-cpp.git



More information about the asterisk-scf-commits mailing list