handle
void handle(org.springframework.mail.MailMessage message,
java.lang.Exception exception)
throws org.springframework.mail.MailException
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.
- Parameters:
message
- the failed messageexception
- the exception that caused the failure- Throws:
org.springframework.mail.MailException
- if the exception cannot be handled