- All Known Implementing Classes:
public interface MailErrorHandler
This class is used to handle errors that occur when email messages are unable to be sent.
- Dan Garrette, Dave Syer
(org.springframework.mail.MailMessage message, Exception exception) throws org.springframework.mail.MailExceptionThis 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.
message- the failed message
exception- the exception that caused the failure
org.springframework.mail.MailException- if the exception cannot be handled