spring-framework / org.springframework.mail / MailSendException / <init>

<init>

MailSendException(msg: String)

Constructor for MailSendException.

Parameters

msg - the detail message

MailSendException(msg: String, @Nullable cause: Throwable)

Constructor for MailSendException.

Parameters

msg - the detail message

cause - the root cause from the mail API in use

MailSendException(@Nullable msg: String, @Nullable cause: Throwable, 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.

Parameters

msg - the detail message

cause - the root cause from the mail API in use

failedMessages - Map of failed messages as keys and thrown exceptions as values

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.

Parameters

failedMessages - Map of failed messages as keys and thrown exceptions as values