|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectSendFailedException
com.sun.mail.smtp.SMTPAddressFailedException
public class SMTPAddressFailedException
This exception is thrown when the message cannot be sent.
The exception includes the address to which the message could not be sent. This will usually appear in a chained list of exceptions, one per address, attached to a top level SendFailedException that aggregates all the addresses.
| Field Summary | |
|---|---|
protected InternetAddress |
addr
|
protected String |
cmd
|
protected int |
rc
|
| Constructor Summary | |
|---|---|
SMTPAddressFailedException(InternetAddress addr,
String cmd,
int rc,
String err)
Constructs an SMTPAddressFailedException with the specified address, return code, and error string. |
|
| Method Summary | |
|---|---|
InternetAddress |
getAddress()
Return the address that failed. |
String |
getCommand()
Return the command that failed. |
int |
getReturnCode()
Return the return code from the SMTP server that indicates the reason for the failure. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected InternetAddress addr
protected String cmd
protected int rc
| Constructor Detail |
|---|
public SMTPAddressFailedException(InternetAddress addr,
String cmd,
int rc,
String err)
addr - the address that failedcmd - the command that was sent to the SMTP serverrc - the SMTP return code indicating the failureerr - the error string from the SMTP server| Method Detail |
|---|
public InternetAddress getAddress()
public String getCommand()
public int getReturnCode()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||