示例#1
0
 private l3.cargo.corba.Host GetHost()
 {
     try
     {
         return(_Host = _NameService.resolve(_ncHost) as l3.cargo.corba.Host);
     }
     catch (l3.cargo.corba.CargoException ex)
     {
         throw new Exception(ex.error_msg, ex.InnerException);
     }
     catch (omg.org.CORBA.INTERNAL ex)
     {
         throw new Exception(ex.Message, ex.InnerException);
     }
     catch (System.Reflection.TargetInvocationException ex)
     {
         throw new Exception(ex.Message, ex.InnerException);
     }
     catch (AbstractCORBASystemException ex)
     {
         throw new Exception(ex.Message, ex.InnerException);
     }
 }
示例#2
0
 private l3.cargo.corba.Host GetHost()
 {
     try
     {
         return _Host = _NameService.resolve(_ncHost) as l3.cargo.corba.Host;
     }
     catch (l3.cargo.corba.CargoException ex)
     {
         throw new Exception(ex.error_msg, ex.InnerException);
     }
     catch (omg.org.CORBA.INTERNAL ex)
     {
         throw new Exception(ex.Message, ex.InnerException);
     }
     catch (System.Reflection.TargetInvocationException ex)
     {
         throw new Exception(ex.Message, ex.InnerException);
     }
     catch (AbstractCORBASystemException ex)
     {
         throw new Exception(ex.Message, ex.InnerException);
     }
 }