public interface MailErrorHandler
Modifier and Type | Method and Description |
---|---|
void |
handle(org.springframework.mail.MailMessage message,
java.lang.Exception exception)
This method will be called for each message that failed sending in the
chunk.
|
void handle(org.springframework.mail.MailMessage message, java.lang.Exception exception) throws org.springframework.mail.MailException
message
- the failed messageexception
- the exception that caused the failureorg.springframework.mail.MailException
- if the exception cannot be handled