Package javax.mail

Class SendFailedException

    • Constructor Summary

      Constructors 
      Constructor Description
      SendFailedException()
      Constructs a SendFailedException with no detail message.
      SendFailedException​(java.lang.String s)
      Constructs a SendFailedException with the specified detail message.
      SendFailedException​(java.lang.String s, java.lang.Exception e)
      Constructs a SendFailedException with the specified Exception and detail message.
      SendFailedException​(java.lang.String msg, java.lang.Exception ex, Address[] validSent, Address[] validUnsent, Address[] invalid)
      Constructs a SendFailedException with the specified string and the specified address objects.
    • Constructor Detail

      • SendFailedException

        public SendFailedException()
        Constructs a SendFailedException with no detail message.
      • SendFailedException

        public SendFailedException​(java.lang.String s)
        Constructs a SendFailedException with the specified detail message.
        Parameters:
        s - the detail message
      • SendFailedException

        public SendFailedException​(java.lang.String msg,
                                   java.lang.Exception ex,
                                   Address[] validSent,
                                   Address[] validUnsent,
                                   Address[] invalid)
        Constructs a SendFailedException with the specified string and the specified address objects.
        Parameters:
        msg - the detail message
        ex - the embedded exception
        validSent - valid addresses to which message was sent
        validUnsent - valid addresses to which message was not sent
        invalid - the invalid addresses
        See Also:
        MessagingException.getNextException(), MessagingException.setNextException(java.lang.Exception)
    • Method Detail

      • getValidSentAddresses

        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

        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

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