public class TestMailErrorHandler extends Object implements MailErrorHandler
Constructor and Description |
---|
TestMailErrorHandler() |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
List<org.springframework.mail.MailMessage> |
getFailedMessages() |
void |
handle(org.springframework.mail.MailMessage failedMessage,
Exception ex)
This method will be called for each message that failed sending in the
chunk.
|
public void handle(org.springframework.mail.MailMessage failedMessage, Exception ex)
MailErrorHandler
handle
in interface MailErrorHandler
failedMessage
- the failed messageex
- the exception that caused the failurepublic List<org.springframework.mail.MailMessage> getFailedMessages()
public void clear()
Copyright © 2014 Pivotal. All rights reserved.