public class SendFailedException extends MessagingException
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.
Modifier and Type | Field and Description |
---|---|
protected Address[] |
invalid |
protected Address[] |
validSent |
protected Address[] |
validUnsent |
Constructor and Description |
---|
SendFailedException() |
SendFailedException(java.lang.String message) |
SendFailedException(java.lang.String message,
java.lang.Exception exception) |
SendFailedException(java.lang.String message,
java.lang.Exception exception,
Address[] validSent,
Address[] validUnsent,
Address[] invalid)
Creates a send failed exception with the specified string and
addresses.
|
Modifier and Type | Method and Description |
---|---|
Address[] |
getInvalidAddresses()
Returns the addresses to which this message could not be sent.
|
Address[] |
getValidSentAddresses()
Returns the addresses to which this message was sent succesfully.
|
Address[] |
getValidUnsentAddresses()
Returns the addresses that are valid but to which this message was
not sent.
|
getCause, getNextException, setNextException, toString
protected transient Address[] invalid
protected transient Address[] validSent
protected transient Address[] validUnsent
public SendFailedException()
public SendFailedException(java.lang.String message)
public SendFailedException(java.lang.String message, java.lang.Exception exception)
public SendFailedException(java.lang.String message, java.lang.Exception exception, Address[] validSent, Address[] validUnsent, Address[] invalid)
message
- the detail messageexception
- the embedded exceptionvalidSent
- valid addresses to which message was sentvalidUnsent
- valid addresses to which message was not sentinvalid
- the invalid addressespublic Address[] getValidSentAddresses()
public Address[] getValidUnsentAddresses()
public Address[] getInvalidAddresses()