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.
javax.mail.Transport#send, javax.mail.Transport#sendMessage, javax.mail.event.TransportEvent
| Modifier and Type | Field and Description |
|---|---|
| protected transient Address[] | |
| private static final long | |
| protected transient Address[] | |
| protected transient Address[] |
| Access | Constructor and Description |
|---|---|
| public | |
| public | SendFailedException(String
the detail message s)Constructs a SendFailedException with the specified detail message. |
| public | SendFailedException(String
the detail message s, Exception the embedded exception e)Constructs a SendFailedException with the specified Exception and detail message. |
| public | SendFailedException(String
the detail message msg, Exception the embedded exception ex, Address[] valid addresses to which message was sent validSent, Address[] valid addresses to which message was not sent validUnsent, Address[] the invalid addresses invalid)Constructs a SendFailedException with the specified string and the specified address objects. |
| Modifier and Type | Method and Description |
|---|---|
| public Address[] | Returns: Addresses to which the message sending failed or null;Return the addresses to which this message could not be sent. |
| public Address[] | Returns: Addresses to which the message was sent successfully or nullReturn the addresses to which this message was sent succesfully. |
| public Address[] | Returns: Addresses that are valid but to which the message was not sent successfully or nullReturn the addresses that are valid but to which this message was not sent. |
| invalid | back to summary |
|---|---|
| protected transient Address[] invalid | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| validSent | back to summary |
|---|---|
| protected transient Address[] validSent | |
| validUnsent | back to summary |
|---|---|
| protected transient Address[] validUnsent | |
| SendFailedException | back to summary |
|---|---|
| public SendFailedException() Constructs a SendFailedException with no detail message. | |
| SendFailedException | back to summary |
|---|---|
| public SendFailedException(String s) Constructs a SendFailedException with the specified detail message.
| |
| SendFailedException | back to summary |
|---|---|
| public SendFailedException(String s, Exception e) Constructs a SendFailedException with the specified Exception and detail message. The specified exception is chained to this exception.
| |
| SendFailedException | back to summary |
|---|---|
| public SendFailedException(String msg, Exception ex, Address[] validSent, Address[] validUnsent, Address[] invalid) Constructs a SendFailedException with the specified string and the specified address objects.
| |
| getInvalidAddresses | back to summary |
|---|---|
| public Address[] getInvalidAddresses() Return the addresses to which this message could not be sent.
| |
| getValidSentAddresses | back to summary |
|---|---|
| public Address[] getValidSentAddresses() Return the addresses to which this message was sent succesfully.
| |
| getValidUnsentAddresses | back to summary |
|---|---|
| public Address[] getValidUnsentAddresses() Return the addresses that are valid but to which this message was not sent.
| |