public void Handle(FailureMessage fail) { IncrementMessagesReceived(); fileProcessed++; var exception = fail.Cause; if (exception is AggregateException) { var agg = (AggregateException)exception; exception = agg.InnerException; agg.Handle(exception1 => true); } //Context.Parent.Tell(new StatusMessage("Error " + fail.Child.Path + " " + exception != null ? exception.Message : "no exception object")); _logger.Error(fail.Cause.Message); }
private void Handle(FailureMessage failureMessage) { IncrementMessagesReceived(); Context.Parent.Tell(failureMessage); }