private static MessageStatus ProcessSmtpResponseException(SmtpResponseException smtpResponseException, IMessageConverter converter)
        {
            MessageStatus status = smtpResponseException.Status;

            if (status.Action == MessageAction.NDR)
            {
                converter.LogMessage(smtpResponseException);
            }
            return(status);
        }
        private static MessageStatus ProcessExchangeDataException(ExchangeDataException exchangeDataException, IMessageConverter converter)
        {
            MessageStatus messageStatus = StorageExceptionHandler.GetMessageStatus(converter, exchangeDataException);

            if (messageStatus.Action == MessageAction.NDR)
            {
                converter.LogMessage(exchangeDataException);
            }
            return(messageStatus);
        }
 internal static void LogException(IMessageConverter converter, Exception e)
 {
     TraceHelper.TracePass(StorageExceptionHandler.diag, 0L, "Exception occurred during message {0} : {1}", new object[]
     {
         converter.Description,
         e
     });
     converter.LogMessage(e);
     StorageExceptionHandler.exceptionCounter.IncrementCounter(e.GetType().FullName);
 }