|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Throwable java.lang.Exception javax.mail.MessagingException javax.mail.SendFailedException
public class 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 FormField Summary | |
---|---|
protected Address[] |
invalid
|
protected Address[] |
validSent
|
protected Address[] |
validUnsent
|
Constructor Summary | |
---|---|
SendFailedException()
Constructs a SendFailedException with no detail message. |
|
SendFailedException(java.lang.String s)
Constructs a SendFailedException with the specified detail message. |
|
SendFailedException(java.lang.String s,
java.lang.Exception e)
Constructs a SendFailedException with the specified Exception and detail message. |
|
SendFailedException(java.lang.String msg,
java.lang.Exception ex,
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. |
Methods inherited from class javax.mail.MessagingException |
---|
getCause, getNextException, setNextException, toString |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected transient Address[] invalid
protected transient Address[] validSent
protected transient Address[] validUnsent
Constructor Detail |
---|
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)
Method Detail |
---|
public Address[] getValidSentAddresses()
public Address[] getValidUnsentAddresses()
public Address[] getInvalidAddresses()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2009, 2010, Oracle Corporation and/or its affiliates. All Rights Reserved. Use is subject to license terms.
Generated on 4-June-2010 04:34