Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/12/08 11:46:21 (16 years ago)
Author:
gkronber
Message:

changed code to remove compiler warnings

Location:
trunk/sources/HeuristicLab.Grid
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Grid/ClientForm.cs

    r252 r383  
    111111        try {
    112112          gotEngine = engineStore.TryTakeEngine(out currentGuid, out engineXml);
    113         } catch(TimeoutException timeoutException) {
     113        } catch(TimeoutException) {
    114114          currentEngine = null;
    115115          currentGuid = Guid.Empty;
     
    117117          fetchOperationTimer.Interval = 5000;
    118118          fetchOperationTimer.Start();
    119         } catch(CommunicationException communicationException) {
     119        } catch(CommunicationException) {
    120120          // connection problem -> reset connection and start the timer again
    121121          ResetConnection();
     
    155155              engineStore.StoreResult(currentGuid, resultXml);
    156156              success = true;
    157             } catch(TimeoutException timeoutException) {
     157            } catch(TimeoutException) {
    158158              success = false;
    159159              retries++;
    160160              Thread.Sleep(TimeSpan.FromSeconds(CONNECTION_RETRY_TIMEOUT_SEC));
    161             } catch(CommunicationException communicationException) {
     161            } catch(CommunicationException) {
    162162              ResetConnection();
    163163              success = false;
  • trunk/sources/HeuristicLab.Grid/JobManager.cs

    r379 r383  
    189189          }
    190190          return;
    191         } catch(TimeoutException timeoutException) {
    192           retries++;
    193           Thread.Sleep(TimeSpan.FromSeconds(RETRY_TIMEOUT_SEC));
    194         } catch(CommunicationException communicationException) {
     191        } catch(TimeoutException) {
     192          retries++;
     193          Thread.Sleep(TimeSpan.FromSeconds(RETRY_TIMEOUT_SEC));
     194        } catch(CommunicationException) {
    195195          ResetConnection();
    196196          retries++;
     
    208208            return zippedResult;
    209209          }
    210         } catch(TimeoutException timeoutException) {
    211           retries++;
    212           Thread.Sleep(TimeSpan.FromSeconds(RETRY_TIMEOUT_SEC));
    213         } catch(CommunicationException communicationException) {
     210        } catch(TimeoutException) {
     211          retries++;
     212          Thread.Sleep(TimeSpan.FromSeconds(RETRY_TIMEOUT_SEC));
     213        } catch(CommunicationException) {
    214214          ResetConnection();
    215215          retries++;
     
    229229            return jobState;
    230230          }
    231         } catch(TimeoutException timeoutException) {
    232           retries++;
    233           Thread.Sleep(TimeSpan.FromSeconds(RETRY_TIMEOUT_SEC));
    234         } catch(CommunicationException communicationException) {
     231        } catch(TimeoutException) {
     232          retries++;
     233          Thread.Sleep(TimeSpan.FromSeconds(RETRY_TIMEOUT_SEC));
     234        } catch(CommunicationException) {
    235235          ResetConnection();
    236236          retries++;
  • trunk/sources/HeuristicLab.Grid/ProcessingEngine.cs

    r268 r383  
    6363        try {
    6464          next = atomicOperation.Operator.Execute(atomicOperation.Scope);
    65         } catch(Exception ex) {
     65        } catch(Exception) {
    6666          // push operation on stack again
    6767          myExecutionStack.Push(atomicOperation);
Note: See TracChangeset for help on using the changeset viewer.