Save This Page
Home » glassfish-v2ur2-b04-src » javax » mail » [javadoc | source]
javax.mail
public class: SendFailedException [javadoc | source]
java.lang.Object
   java.lang.Throwable
      java.lang.Exception
         javax.mail.MessagingException
            javax.mail.SendFailedException

All Implemented Interfaces:
    Serializable

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.

Field Summary
protected transient  Address[] invalid     
protected transient  Address[] validSent     
protected transient  Address[] validUnsent     
Constructor:
 public SendFailedException() 
 public SendFailedException(String s) 
    Constructs a SendFailedException with the specified detail message.
    Parameters:
    s - the detail message
 public SendFailedException(String s,
    Exception e) 
    Constructs a SendFailedException with the specified Exception and detail message. The specified exception is chained to this exception.
 public SendFailedException(String msg,
    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
    Also see:
    getNextException
    setNextException
Method from javax.mail.SendFailedException Summary:
getInvalidAddresses,   getValidSentAddresses,   getValidUnsentAddresses
Methods from javax.mail.MessagingException:
getCause,   getNextException,   setNextException,   toString
Methods from java.lang.Throwable:
fillInStackTrace,   getCause,   getLocalizedMessage,   getMessage,   getStackTrace,   initCause,   printStackTrace,   printStackTrace,   printStackTrace,   setStackTrace,   toString
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from javax.mail.SendFailedException Detail:
 public Address[] getInvalidAddresses() 
    Return the addresses to which this message could not be sent.
 public Address[] getValidSentAddresses() 
    Return the addresses to which this message was sent succesfully.
 public Address[] getValidUnsentAddresses() 
    Return the addresses that are valid but to which this message was not sent.