| Modifier and Type | Field and Description |
|---|---|
| private final transient Map | |
| private final Exception[] |
| Access | Constructor and Description |
|---|---|
| public | |
| public | MailSendException(String
the detail message msg, Throwable the root cause from the mail API in use cause)Constructor for MailSendException. |
| public | MailSendException(String
the detail message msg, Throwable the root cause from the mail API in use cause, Map<Object, Exception> a Map of failed messages as keys and thrown
exceptions as values failedMessages)Constructor for registration of failed messages, with the messages that failed as keys, and the thrown exceptions as values. |
| public | MailSendException(Map<Object, Exception>
a Map of failed messages as keys and thrown
exceptions as values failedMessages)Constructor for registration of failed messages, with the messages that failed as keys, and the thrown exceptions as values. |
| Modifier and Type | Method and Description |
|---|---|
| public final Map | Returns: the Map of failed messages as keys and thrown exceptions as valuesReturn a Map with the failed messages as keys, and the thrown exceptions as values. |
| public String | getMessage()
Overrides java. Returns the detail message string of this throwable. |
| public final Exception[] | Returns: the array of thrown message exceptions, or an empty array if no failed messagesReturn an array with thrown message exceptions. |
| public void | printStackTrace(PrintStream
PrintStream to use for outputOverrides java. Prints this throwable and its backtrace to the specified print stream. |
| public void | printStackTrace(PrintWriter
PrintWriter to use for outputOverrides java. Prints this throwable and its backtrace to the specified print writer. |
| public String |
| failedMessages | back to summary |
|---|---|
| private final transient Map<Object, Exception> failedMessages | |
| messageExceptions | back to summary |
|---|---|
| private final Exception[] messageExceptions
| |
| MailSendException | back to summary |
|---|---|
| public MailSendException(String msg) Constructor for MailSendException.
| |
| MailSendException | back to summary |
|---|---|
| public MailSendException(String msg, Throwable cause) Constructor for MailSendException. | |
| MailSendException | back to summary |
|---|---|
| public MailSendException(String msg, Throwable cause, Map<Object, Exception> failedMessages) 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. | |
| MailSendException | back to summary |
|---|---|
| public MailSendException(Map<Object, Exception> failedMessages) 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. | |
| getFailedMessages | back to summary |
|---|---|
| public final Map 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
| |
| getMessage | back to summary |
|---|---|
| public String getMessage() Overrides java. Doc from java. Returns the detail message string of this throwable. | |
| getMessageExceptions | back to summary |
|---|---|
| public final Exception[] getMessageExceptions() 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.
| |
| printStackTrace | back to summary |
|---|---|
| public void printStackTrace(PrintStream ps) Overrides java. Doc from java. Prints this throwable and its backtrace to the specified print stream.
| |
| printStackTrace | back to summary |
|---|---|
| public void printStackTrace(PrintWriter pw) Overrides java. Doc from java. Prints this throwable and its backtrace to the specified print writer.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a short description of this throwable. The result is the concatenation of:
getLocalizedMessage returns null, then just
the class name is returned.
| |