Skip to content

Commit

Permalink
JAMES-1877 Make naming on Error management clearer
Browse files Browse the repository at this point in the history
  • Loading branch information
chibenwa committed Jan 10, 2017
1 parent aec9b2f commit 70ad233
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -135,7 +135,7 @@ private ExecutionResult doDeliver(Mail mail, MimeMessage message, InternetAddres
return ExecutionResult.success();
}
} catch (SendFailedException sfe) {
lastError = handleSendFailException(mail, sfe);
lastError = handleSendFailExceptionOnMxIteration(mail, sfe);
} catch (MessagingException me) {
lastError = handleMessagingException(mail, me);
if (configuration.isDebug()) {
Expand Down Expand Up @@ -223,7 +223,7 @@ private ExecutionResult logAndReturn(Mail mail, ExecutionResult executionResult)
return executionResult;
}

private MessagingException handleSendFailException(Mail mail, SendFailedException sfe) throws SendFailedException {
private MessagingException handleSendFailExceptionOnMxIteration(Mail mail, SendFailedException sfe) throws SendFailedException {
logSendFailedException(sfe);

if (sfe.getValidSentAddresses() != null) {
Expand Down

0 comments on commit 70ad233

Please sign in to comment.