接口 MailErrorHandler

    • 方法概要

      所有方法 实例方法 抽象方法 
      修饰符和类型方法说明
      voidhandle​(org.springframework.mail.MailMessage message, java.lang.Exception exception)
      This method will be called for each message that failed sending in the chunk.
    • 方法详细资料

      • 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.
        参数:
        message - the failed message
        exception - the exception that caused the failure
        抛出:
        org.springframework.mail.MailException - if the exception cannot be handled