|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectSendFailedException
com.sun.mail.smtp.SMTPSenderFailedException
public class SMTPSenderFailedException
This exception is thrown when the message cannot be sent.
The exception includes the sender's address, which the mail server rejected.
| Field Summary | |
|---|---|
protected InternetAddress |
addr
|
protected String |
cmd
|
protected int |
rc
|
| Constructor Summary | |
|---|---|
SMTPSenderFailedException(InternetAddress addr,
String cmd,
int rc,
String err)
Constructs an SMTPSenderFailedException 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 SMTPSenderFailedException(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 | ||||||||