public class

SMTPAddressSucceededException

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

Class Overview

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.

Summary

Constants
long serialVersionUID
[Expand]
Inherited Constants
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.MessagingException
From class java.lang.Throwable
Public Constructors
SMTPAddressSucceededException(InternetAddress addr, String cmd, int rc, String err)
Constructs an SMTPAddressSucceededException with the specified address, return code, and error string.
Public Methods
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.
[Expand]
Inherited Methods
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: -1168335848623096749 (0xefc93cbc5c773c53)

Fields

protected InternetAddress addr

protected String cmd

protected int rc

Public Constructors

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

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

Parameters
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

Public Methods

public InternetAddress getAddress ()

Return the address that succeeded.

public String getCommand ()

Return the command that succeeded.

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.