Package jakarta.mail

Class SendFailedException

All Implemented Interfaces:
Serializable

public class SendFailedException extends MessagingException
This exception is thrown when the message cannot be sent.

The exception includes those addresses to which the message could not be sent as well as the valid addresses to which the message was sent and valid addresses to which the message was not sent.

Author:
John Mani, Max Spivak
See Also:
  • Field Details Link icon

    • invalid Link icon

      protected transient Address[] invalid
      The invalid addresses.
    • validSent Link icon

      protected transient Address[] validSent
      Valid addresses to which message was sent.
    • validUnsent Link icon

      protected transient Address[] validUnsent
      Valid addresses to which message was not sent.
  • Constructor Details Link icon

  • Method Details Link icon

    • getValidSentAddresses Link icon

      public Address[] getValidSentAddresses()
      Return the addresses to which this message was sent succesfully.
      Returns:
      Addresses to which the message was sent successfully or null
    • getValidUnsentAddresses Link icon

      public Address[] getValidUnsentAddresses()
      Return the addresses that are valid but to which this message was not sent.
      Returns:
      Addresses that are valid but to which the message was not sent successfully or null
    • getInvalidAddresses Link icon

      public Address[] getInvalidAddresses()
      Return the addresses to which this message could not be sent.
      Returns:
      Addresses to which the message sending failed or null;