protected internal virtual void HandleGeneralExceptions([CanBeNull] HandleMessagesOptionsBase messageOptions, [CanBeNull] Exception exception) { if (Guard.IsAnyNull(messageOptions, exception)) { return; } this.Statistics.IncreaseCriticallyFaultedMessages(); this.Statistics.IncreaseReenqueuesCount(); try { if (messageOptions.ExceptionHandler != null) { messageOptions.ExceptionHandler(exception); this.Top.LogException(LogSeverity.Info, exception, "An unexpected exception occurred while processing messages on queue '{0}' and was handled", this.Name); } else { this.Top.LogException(LogSeverity.Error, exception, "An unexpected exception occurred while processing messages on queue '{0}' but was not handled!", this.Name); } } catch (Exception innerEx) { this.Top.LogException(LogSeverity.Error, innerEx, "An unexpected exception occurred within the general exception handler on queue '{0}'", this.Name); } }
protected internal override void HandleStorageExceptions(HandleMessagesOptionsBase messageOptions, CloudToolsStorageException ex) { this.DecoratedQueue.HandleStorageExceptions(messageOptions, ex); }
protected internal override void HandleGeneralExceptions(HandleMessagesOptionsBase messageOptions, Exception ex) { this.DecoratedQueue.HandleGeneralExceptions(messageOptions, ex); }