Exemplo n.º 1
0
 internal static void Check(ServiceClient.GetEtkResponse response)
 {
     Exception inner = null;
     foreach (Object item in response.Items)
     {
         if (item is ServiceClient.ErrorType1)
         {
             inner = new ServiceException((ServiceClient.ErrorType1)item, inner);
         }
     }
     if (response.Status.Code != "200") throw new ServiceException(response, inner);
     if (inner != null) throw inner;
 }
Exemplo n.º 2
0
 internal static void Check(ServiceClient.EteeResponseType response)
 {
     Exception inner = null;
     if (response.Error != null)
     {
         foreach (ServiceClient.ErrorType error in response.Error)
         {
             inner = new ServiceException(error, inner);
         }
     }
     if (response.Status.Code != "200") throw new ServiceException(response.Status, inner);
     if (inner != null) throw inner;
 }