Example #1
0
 public override void ThrowUserException()
 {
     Debug.Assert(Is != null);
     Is.StartEncapsulation();
     try
     {
         Is.ThrowException();
     }
     finally
     {
         Is.EndEncapsulation();
     }
 }
Example #2
0
 public override void ThrowUserException()
 {
     Debug.Assert(Is != null);
     try
     {
         Is.StartEncapsulation();
         Is.ThrowException();
     }
     catch (Ice.UserException ex)
     {
         Is.EndEncapsulation();
         if (UserException != null)
         {
             UserException.Invoke(ex);
         }
         throw new Ice.UnknownUserException(ex.ice_id());
     }
 }