FileDocCategorySizeDatePackage
SMTPAddressSucceededException.javaAPI DocJavaMail 1.4.33753Tue Nov 17 10:38:12 GMT 2009com.sun.mail.smtp

SMTPAddressSucceededException

public class SMTPAddressSucceededException extends MessagingException
This exception is chained off a SendFailedException when the mail.smtp.reportsuccess property is true. It indicates an address to which the message was sent. The command will be an SMTP RCPT command and the return code will be the return code from that command.
since
JavaMail 1.3.2

Fields Summary
protected InternetAddress
addr
protected String
cmd
protected int
rc
private static final long
serialVersionUID
Constructors Summary
public SMTPAddressSucceededException(InternetAddress addr, String cmd, int rc, String err)
Constructs an SMTPAddressSucceededException with the specified address, return code, and error string.

param
addr the address that succeeded
param
cmd the command that was sent to the SMTP server
param
rc the SMTP return code indicating the success
param
err the error string from the SMTP server


                   	     	          	        	           
      
				      
	super(err);
	this.addr = addr;
	this.cmd = cmd;
	this.rc = rc;
    
Methods Summary
public javax.mail.internet.InternetAddressgetAddress()
Return the address that succeeded.

	return addr;
    
public java.lang.StringgetCommand()
Return the command that succeeded.

	return cmd;
    
public intgetReturnCode()
Return the return code from the SMTP server that indicates the reason for the success. See RFC 821 for interpretation of the return code.

	return rc;