Exemple #1
0
 private void HandleErrors(IExecutionStrategy strategy, Action <Exception> errorHandler, Exception exception)
 {
     try
     {
         strategy.HandleErrors(errorHandler, exception);
     }
     catch (Exception errorHandlerException)
     {
         if (errorHandlerException != exception)
         {
             _log.Error("Error: {0}", exception.Message);
         }
         throw;
     }
 }
 /// <summary>
 /// Executes the error handler.
 /// </summary>
 /// <param name="action">The action.</param>
 /// <param name="exception">The exception.</param>
 public void HandleErrors(Action <Exception> action, Exception exception)
 {
     _default.HandleErrors(action, exception);
 }
 /// <summary>
 /// Executes the error handler.
 /// </summary>
 /// <param name="action">The action.</param>
 /// <param name="exception">The exception.</param>
 /// <param name="context">The context.</param>
 public void HandleErrors(Action <Exception, ICakeContext> action, Exception exception, ICakeContext context)
 {
     _default.HandleErrors(action, exception, context);
 }