FileDocCategorySizeDatePackage
SMTPAddressSucceededException.javaAPI DocGlassfish v2 API3816Mon May 14 15:28:46 BST 2007com.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;