Exemple #1
0
 public static Ice.DispatchStatus transfer___(Account obj__, IceInternal.Incoming inS__, Ice.Current current__)
 {
     checkMode__(Ice.OperationMode.Normal, current__.mode);
     IceInternal.BasicStream is__ = inS__.startReadParams();
     string accountNumber;
     int amount;
     accountNumber = is__.readString();
     amount = is__.readInt();
     inS__.endReadParams();
     try
     {
         obj__.transfer(accountNumber, amount, current__);
         inS__.writeEmptyParams__();
         return Ice.DispatchStatus.DispatchOK;
     }
     catch(Bank.IncorrectAccountNumber ex__)
     {
         inS__.writeUserException__(ex__, Ice.FormatType.DefaultFormat);
         return Ice.DispatchStatus.DispatchUserException;
     }
     catch(Bank.IncorrectAmount ex__)
     {
         inS__.writeUserException__(ex__, Ice.FormatType.DefaultFormat);
         return Ice.DispatchStatus.DispatchUserException;
     }
 }