Ejemplo n.º 1
0
 protected override void AfterExecute(Runnable task, Exception exception)
 {
     if (task is FutureTask <object> )
     {
         FutureTask <object> futureTask = (FutureTask <object>)task;
         if (!futureTask.IsCancelled())
         {
             try
             {
                 futureTask.Get();
             }
             catch (ExecutionException ee)
             {
                 exception = ee.InnerException;
             }
             catch (Exception ie)
             {
                 exception = ie;
             }
         }
     }
     if (exception != null)
     {
         Log.Error("Exception during execution of task in DeletionService", exception);
     }
 }