public class

SMTPAddressFailedException

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.SMTPAddressFailedException

Class Overview

This exception is thrown when the message cannot be sent.

The exception includes the address to which the message could not be sent. This will usually appear in a chained list of exceptions, one per address, attached to a top level SendFailedException that aggregates all the addresses.

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
SMTPAddressFailedException(InternetAddress addr, String cmd, int rc, String err)
Constructs an SMTPAddressFailedException with the specified address, return code, and error string.
Public Methods
InternetAddress getAddress()
Return the address that failed.
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: 804831199768630097 (0x0b2b55b6465c5351)

Fields

protected InternetAddress addr

protected String cmd

protected int rc

Public Constructors

public SMTPAddressFailedException (InternetAddress addr, String cmd, int rc, String err)

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

Parameters
addr The address that failed
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

Public Methods

public InternetAddress getAddress ()

Return the address that failed.

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.