This exception will usually appear first in a chained list of exceptions, followed by SMTPAddressFailedExceptions and/or SMTPAddressSucceededExceptions, * one per address. This exception corresponds to one of the SMTP commands used to send a message, such as the MAIL, DATA, and "end of data" commands, but not including the RCPT command.
| Modifier and Type | Field and Description |
|---|---|
| protected InternetAddress | |
| protected String | |
| protected int | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public | SMTPSendFailedException(String
the command that was sent to the SMTP server cmd, int the SMTP return code indicating the failure rc, String the error string from the SMTP server err, Exception a chained exception ex, Address[] the valid addresses the message was sent to vs, Address[] the valid addresses the message was not sent to vus, Address[] the invalid addresses inv)Constructs an SMTPSendFailedException with the specified address, return code, and error string. |
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public int | Returns: the return codeReturn the return code from the SMTP server that indicates the reason for the failure. |
| addr | back to summary |
|---|---|
| protected InternetAddress addr | |
| cmd | back to summary |
|---|---|
| protected String cmd | |
| rc | back to summary |
|---|---|
| protected int rc | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| SMTPSendFailedException | back to summary |
|---|---|
| public SMTPSendFailedException(String cmd, int rc, String err, Exception ex, Address[] vs, Address[] vus, Address[] inv) Constructs an SMTPSendFailedException with the specified address, return code, and error string.
| |
| getCommand | back to summary |
|---|---|
| public String getCommand() Return the command that failed.
| |
| getReturnCode | back to summary |
|---|---|
| public int getReturnCode() Return the return code from the SMTP server that indicates the reason for the failure. See RFC 821 for interpretation of the return code.
| |