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
- 関連項目:
- 直列化された形式
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 を参照して下さい。