handle
public void handle(org.springframework.mail.MailMessage failedMessage,
java.lang.Exception ex)
This method will be called for each message that failed sending in the
chunk. If the failed message is needed by the handler it will need to be
downcast according to its runtime type. If an exception is thrown from
this method, then it will propagate to the caller.
- Specified by:
handle
in interface MailErrorHandler
- Parameters:
failedMessage
- the failed message
ex
- the exception that caused the failure