- Timestamp:
- 05/04/17 17:19:35 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/PersistenceReintegration/HeuristicLab.DebugEngine/3.3/DebugEngine.cs
r14185 r14927 26 26 using HeuristicLab.Common; 27 27 using HeuristicLab.Core; 28 using HeuristicLab.Persistence .Default.CompositeSerializers.Storable;28 using HeuristicLab.Persistence; 29 29 30 30 namespace HeuristicLab.DebugEngine { 31 31 32 [Storable Class]32 [StorableType("671a070c-deca-445a-af74-2249f4825739")] 33 33 [Item("Debug Engine", "Engine for debugging algorithms.")] 34 34 public class DebugEngine : Executable, IEngine { … … 161 161 while (skipStackOperations && !(CurrentOperation is IAtomicOperation) && CanContinue) 162 162 ProcessNextOperation(true, cancellationTokenSource.Token); 163 } 164 catch (Exception ex) { 163 } catch (Exception ex) { 165 164 OnExceptionOccurred(ex); 166 165 } … … 182 181 try { 183 182 t.Wait(); 184 } 185 catch (AggregateException ex) { 183 } catch (AggregateException ex) { 186 184 try { 187 185 ex.Flatten().Handle(x => x is OperationCanceledException); 188 } 189 catch (AggregateException remaining) { 186 } catch (AggregateException remaining) { 190 187 if (remaining.InnerExceptions.Count == 1) OnExceptionOccurred(remaining.InnerExceptions[0]); 191 188 else OnExceptionOccurred(remaining); … … 250 247 ProcessNextOperation(false, cancellationToken); 251 248 cancellationToken.ThrowIfCancellationRequested(); 252 } 253 finally { 249 } finally { 254 250 timer.Stop(); 255 251 ExecutionTime += DateTime.UtcNow - lastUpdateTime; … … 317 313 } 318 314 CurrentOperation = null; 319 } 320 catch (Exception ex) { 315 } catch (Exception ex) { 321 316 if (ex is OperationCanceledException) throw ex; 322 317 else throw new OperatorExecutionException(operation.Operator, ex);
Note: See TracChangeset
for help on using the changeset viewer.