⇒ Index (Frames) |  ⇒ Index (No Frames) |  ⇒ Package |  ⇒ Package Tree |  ⇒ Full Tree 
javax.mail

Class SendFailedException

Exception
|
+--javax.mail.MessagingException
   |
   +--javax.mail.SendFailedException


public class SendFailedException
extends MessagingException

This exception is thrown when the message cannot be sent.

The exception includes those addresses to which the message could not be sent as well as the valid addresses to which the message was sent and valid addresses to which the message was not sent.

Author:

Field Summary

transient Address[]

invalid

This exception is thrown when the message cannot be sent.

transient Address[]

validSent

transient Address[]

validUnsent

Constructor Summary

SendFailedException()

SendFailedException(String message)

SendFailedException(String message, Exception exception)

SendFailedException(String message, Exception exception, Address validSent, Address validUnsent, Address invalid)

Constructs a SendFailedException with the specified string and the specified address objects.

Method Summary

Address[]

getInvalidAddresses()

Return the addresses to which this message could not be sent.

Address[]

getValidSentAddresses()

Return the addresses to which this message was sent succesfully.

Address[]

getValidUnsentAddresses()

Return the addresses that are valid but to which this message was not sent.

Field Details

invalid

protected transient Address[] invalid

This exception is thrown when the message cannot be sent.

The exception includes those addresses to which the message could not be sent as well as the valid addresses to which the message was sent and valid addresses to which the message was not sent.

Author:

validSent

protected transient Address[] validSent


validUnsent

protected transient Address[] validUnsent

Constructor Details

SendFailedException

public SendFailedException()


SendFailedException

public SendFailedException(String message)

Parameters:
message

SendFailedException

public SendFailedException(String message, Exception exception)

Parameters:
message
exception

SendFailedException

public SendFailedException(String message, Exception exception, Address validSent, Address validUnsent, Address invalid)

Constructs a SendFailedException with the specified string and the specified address objects.

Parameters:
message - the detail message
exception - the embedded exception
validSent - valid addresses to which message was sent
validUnsent - valid addresses to which message was not sent
invalid - the invalid addresses

Method Details

getInvalidAddresses

public Address[] getInvalidAddresses()

Return the addresses to which this message could not be sent.


getValidSentAddresses

public Address[] getValidSentAddresses()

Return the addresses to which this message was sent succesfully.


getValidUnsentAddresses

public Address[] getValidUnsentAddresses()

Return the addresses that are valid but to which this message was not sent.