com.sun.mail.smtp
类 SMTPAddressSucceededException

java.lang.Object
  继承者 java.lang.Throwable
      继承者 java.lang.Exception
          继承者 javax.mail.MessagingException
              继承者 com.sun.mail.smtp.SMTPAddressSucceededException
所有已实现的接口:
Serializable

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.

从以下版本开始:
JavaMail 1.3.2
另请参见:
序列化表格

字段摘要
protected  InternetAddress addr
           
protected  String cmd
           
protected  int rc
           
 
构造方法摘要
SMTPAddressSucceededException(InternetAddress addr, String cmd, int rc, String err)
          Constructs an SMTPAddressSucceededException with the specified address, return code, and error string.
 
方法摘要
 InternetAddress getAddress()
          Return the address that succeeded.
 String getCommand()
          Return the command that succeeded.
 int getReturnCode()
          Return the return code from the SMTP server that indicates the reason for the success.
 
从类 javax.mail.MessagingException 继承的方法
getCause, getNextException, setNextException, toString
 
从类 java.lang.Throwable 继承的方法
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

字段详细信息

addr

protected InternetAddress addr

cmd

protected String cmd

rc

protected int rc
构造方法详细信息

SMTPAddressSucceededException

public SMTPAddressSucceededException(InternetAddress addr,
                                     String cmd,
                                     int rc,
                                     String err)
Constructs an SMTPAddressSucceededException with the specified address, return code, and error string.

参数:
addr - the address that succeeded
cmd - the command that was sent to the SMTP server
rc - the SMTP return code indicating the success
err - the error string from the SMTP server
方法详细信息

getAddress

public InternetAddress getAddress()
Return the address that succeeded.


getCommand

public String getCommand()
Return the command that succeeded.


getReturnCode

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



Copyright © 2013. All Rights Reserved.