public class

SMTPSendFailedException

extends SendFailedException
java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ com.google.code.javax.mail.MessagingException
         ↳ com.google.code.javax.mail.SendFailedException
           ↳ com.google.code.com.sun.mail.smtp.SMTPSendFailedException

Class Overview

This exception is thrown when the message cannot be sent.

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.

Summary

Constants
long serialVersionUID
[Expand]
Inherited Constants
From class com.google.code.javax.mail.SendFailedException
From class com.google.code.javax.mail.MessagingException
From class java.lang.Exception
From class java.lang.Throwable
Fields
protected InternetAddress addr
protected String cmd
protected int rc
[Expand]
Inherited Fields
From class com.google.code.javax.mail.SendFailedException
From class com.google.code.javax.mail.MessagingException
From class java.lang.Throwable
Public Constructors
SMTPSendFailedException(String cmd, int rc, String err, Exception ex, Address[] vs, Address[] vus, Address[] inv)
Constructs an SMTPSendFailedException with the specified address, return code, and error string.
Public Methods
String getCommand()
Return the command that failed.
int getReturnCode()
Return the return code from the SMTP server that indicates the reason for the failure.
[Expand]
Inherited Methods
From class com.google.code.javax.mail.SendFailedException
From class com.google.code.javax.mail.MessagingException
From class java.lang.Throwable
From class java.lang.Object

Constants

private static final long serialVersionUID

Constant Value: 8049122628728932894 (0x6fb43a627ef24a1e)

Fields

protected InternetAddress addr

protected String cmd

protected int rc

Public Constructors

public SMTPSendFailedException (String cmd, int rc, String err, Exception ex, Address[] vs, Address[] vus, Address[] inv)

Constructs an SMTPSendFailedException with the specified address, return code, and error string.

Parameters
cmd The command that was sent to the SMTP server
rc The SMTP return code indicating the failure
err The error string from the SMTP server
ex
vs
vus
inv

Public Methods

public String getCommand ()

Return the command that failed.

public int getReturnCode ()

Return the return code from the SMTP server that indicates the reason for the failure. See RFC 821 for interpretation of the return code.