com.sun.mail.smtp
クラス SMTPSendFailedException

java.lang.Object
  上位を拡張 java.lang.Throwable
      上位を拡張 java.lang.Exception
          上位を拡張 javax.mail.MessagingException
              上位を拡張 javax.mail.SendFailedException
                  上位を拡張 com.sun.mail.smtp.SMTPSendFailedException
すべての実装されたインタフェース:
Serializable

public final class SMTPSendFailedException
extends SendFailedException

この例外はメッセージを送信できない場合にスローされます。

This exception will usually appear first in a chained list of exceptions, followed by SMTPAddressFailedExceptions and/or SMTPAddressSucceededExceptions, one per address. This exception corresponds to one of the SMTP commands used to send a message, such as the MAIL, DATA, and "end of data" commands, but not including the RCPT command.

導入されたバージョン:
JavaMail 1.3.2
関連項目:
直列化された形式

フィールドの概要
protected  InternetAddress addr
           
protected  String cmd
           
protected  int rc
           
 
クラス javax.mail.SendFailedException から継承されたフィールド
invalid, validSent, validUnsent
 
コンストラクタの概要
SMTPSendFailedException(String cmd, int rc, String err, Exception ex, Address[] vs, Address[] vus, Address[] inv)
          指定されたアドレス、リターンコード、及びエラー文字列で SMTPSendFailedException を構築します。
 
メソッドの概要
 String getCommand()
          失敗したコマンドを返します。
 int getReturnCode()
          失敗の理由を示す SMTP サーバからのリターンコードを返します。
 
クラス javax.mail.SendFailedException から継承されたメソッド
getInvalidAddresses, getValidSentAddresses, getValidUnsentAddresses
 
クラス javax.mail.MessagingException から継承されたメソッド
getMessage, getNextException, setNextException
 
クラス java.lang.Throwable から継承されたメソッド
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
クラス 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
コンストラクタの詳細

SMTPSendFailedException

public SMTPSendFailedException(String cmd,
                               int rc,
                               String err,
                               Exception ex,
                               Address[] vs,
                               Address[] vus,
                               Address[] inv)
指定されたアドレス、リターンコード、及びエラー文字列で SMTPSendFailedException を構築します。

パラメータ:
cmd - SMTP サーバに送信したコマンド
rc - 失敗を示す SMTP リターンコード
err - SMTP サーバからのエラー文字列
メソッドの詳細

getCommand

public String getCommand()
失敗したコマンドを返します。


getReturnCode

public int getReturnCode()
失敗の理由を示す SMTP サーバからのリターンコードを返します。 リターンコードについては RFC 821 を参照して下さい。