open class MailSendException : MailException
Exception thrown when a mail sending error is encountered. Can register failed messages with their exceptions.
Author
Dmitriy Kopylenko
Author
Juergen Hoeller
MailSendException(msg: String)MailSendException(msg: String, cause: Throwable)
Constructor for MailSendException. MailSendException(msg: String, cause: Throwable, failedMessages: MutableMap<Any, Exception>)MailSendException(failedMessages: MutableMap<Any, Exception>)
Constructor for registration of failed messages, with the messages that failed as keys, and the thrown exceptions as values. The messages should be the same that were originally passed to the invoked send method. |
open val message: String |
fun getFailedMessages(): MutableMap<Any, Exception>
Return a Map with the failed messages as keys, and the thrown exceptions as values. Note that a general mail server connection failure will not result in failed messages being returned here: A message will only be contained here if actually sending it was attempted but failed. The messages will be the same that were originally passed to the invoked send method, that is, SimpleMailMessages in case of using the generic MailSender interface. In case of sending MimeMessage instances via JavaMailSender, the messages will be of type MimeMessage. NOTE: This Map will not be available after serialization. Use |
|
fun getMessageExceptions(): Array<Exception>
Return an array with thrown message exceptions. Note that a general mail server connection failure will not result in failed messages being returned here: A message will only be contained here if actually sending it was attempted but failed. |
|
open fun printStackTrace(ps: PrintStream): Unitopen fun printStackTrace(pw: PrintWriter): Unit |
|
open fun toString(): String |