javax.mail
Class SendFailedException
public class SendFailedException
An exception thrown when a message cannot be sent.
It 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.
SendFailedException() - Constructs a messaging exception with no detail message.
|
SendFailedException(String message) - Constructs a messaging exception with the specified detail message.
|
SendFailedException(String message, Exception exception) - Constructs a messaging exception with the specified exception and detail
message.
|
SendFailedException(String message, Exception exception, Address[] validSent, Address[] validUnsent, Address[] invalid) - Creates a send failed exception with the specified string and
addresses.
|
validSent
protected Address[] validSent
validUnsent
protected Address[] validUnsent
SendFailedException
public SendFailedException()
Constructs a messaging exception with no detail message.
SendFailedException
public SendFailedException(String message)
Constructs a messaging exception with the specified detail message.
message
- the detail message
SendFailedException
public SendFailedException(String message,
Exception exception)
Constructs a messaging exception with the specified exception and detail
message.
message
- the detail messageexception
- the embedded exception
SendFailedException
public SendFailedException(String message,
Exception exception,
Address[] validSent,
Address[] validUnsent,
Address[] invalid)
Creates a send failed exception with the specified string and
addresses.
message
- the detail messageexception
- the embedded exceptionvalidSent
- valid addresses to which message was sentvalidUnsent
- valid addresses to which message was not sentinvalid
- the invalid addresses
getInvalidAddresses
public Address[] getInvalidAddresses()
Returns the addresses to which this message could not be sent.
getValidSentAddresses
public Address[] getValidSentAddresses()
Returns the addresses to which this message was sent succesfully.
getValidUnsentAddresses
public Address[] getValidUnsentAddresses()
Returns the addresses that are valid but to which this message was
not sent.
© Copyright 2003, 2004
The Free Software Foundation, All rights reserved