java.lang.Object | +--java.lang.Throwable | +--java.lang.Exception | +--javax.mail.MessagingException | +--javax.mail.SendFailedException
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.
Transport.send(javax.mail.Message)
,
Transport.sendMessage(javax.mail.Message, javax.mail.Address[])
,
TransportEvent
, Serialized Form
SendFailedException()
SendFailedException(java.lang.String s)
SendFailedException(java.lang.String s,
java.lang.Exception e)
SendFailedException(java.lang.String msg,
java.lang.Exception ex,
Address[] validSent,
Address[] validUnsent,
Address[] invalid)
Address[]
getValidUnsentAddresses()
fillInStackTrace, getLocalizedMessage, printStackTrace, printStackTrace, printStackTrace, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
protected transient Address[] invalid
protected transient Address[] validSent
protected transient Address[] validUnsent
public SendFailedException()
public SendFailedException(java.lang.String s)
s
- the detail messagepublic SendFailedException(java.lang.String s, java.lang.Exception e)
s
- the detail messagee
- the embedded exceptionMessagingException.getNextException()
,
MessagingException.setNextException(java.lang.Exception)
public SendFailedException(java.lang.String msg, java.lang.Exception ex, Address[] validSent, Address[] validUnsent, Address[] invalid)
msg
- the detail messageex
- the embedded exceptionvalidSent
- valid addresses to which message was sentvalidUnsent
- valid addresses to which message was not sentinvalid
- the invalid addressesMessagingException.getNextException()
,
MessagingException.setNextException(java.lang.Exception)
public Address[] getValidSentAddresses()
public Address[] getValidUnsentAddresses()
public Address[] getInvalidAddresses()