|
Java EE 5 SDK 深圳电信培训中心.徐海蛟老师. |
||||||||
上一个类 下一个类 | 框架 无框架 | ||||||||
摘要: 嵌套 | 字段 | 构造器 | 方法 | 详细信息: 字段 | 构造器 | 方法 |
javax.mail Class SendFailedException
java.lang.Object java.lang.Throwable java.lang.Exception javax.mail.MessagingException javax.mail.SendFailedException
- 所有已实现的接口:
- Serializable
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.
- 作者:
- John Mani, Max Spivak
- 另请参见:
Transport.send(javax.mail.Message)
,Transport.sendMessage(javax.mail.Message, javax.mail.Address[])
,TransportEvent
, Serialized Form
字段摘要 | |
---|---|
protected Address[] |
invalid
|
protected Address[] |
validSent
|
protected Address[] |
validUnsent
|
构造器摘要 | |
---|---|
SendFailedException()
Constructs a SendFailedException with no detail message. |
|
SendFailedException(String s)
Constructs a SendFailedException with the specified detail message. |
|
SendFailedException(String s,
Exception e)
Constructs a SendFailedException with the specified Exception and detail message. |
|
SendFailedException(String msg,
Exception ex,
Address[] validSent,
Address[] validUnsent,
Address[] invalid)
Constructs a SendFailedException with the specified string and the specified address objects. |
方法摘要 | |
---|---|
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. |
类方法继承 javax.mail.MessagingException |
---|
getCause, getNextException, setNextException, toString |
类方法继承 java.lang.Throwable |
---|
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace |
类方法继承 java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
字段详细信息 |
---|
invalid
protected transient Address[] invalid
validSent
protected transient Address[] validSent
validUnsent
protected transient Address[] validUnsent
构造器详细信息 |
---|
SendFailedException
public SendFailedException()
- Constructs a SendFailedException with no detail message.
SendFailedException
public SendFailedException(String s)
- Constructs a SendFailedException with the specified detail message.
- 参数:
s
- the detail message
SendFailedException
public SendFailedException(String s, Exception e)
- Constructs a SendFailedException with the specified
Exception and detail message. The specified exception is chained
to this exception.
- 参数:
s
- the detail messagee
- the embedded exception- 另请参见:
MessagingException.getNextException()
,MessagingException.setNextException(java.lang.Exception)
SendFailedException
public SendFailedException(String msg, Exception ex, Address[] validSent, Address[] validUnsent, Address[] invalid)
- Constructs a SendFailedException with the specified string
and the specified address objects.
- 参数:
msg
- the detail messageex
- the embedded exceptionvalidSent
- valid addresses to which message was sentvalidUnsent
- valid addresses to which message was not sentinvalid
- the invalid addresses- 另请参见:
MessagingException.getNextException()
,MessagingException.setNextException(java.lang.Exception)
方法详细信息 |
---|
getValidSentAddresses
public Address[] getValidSentAddresses()
- Return the addresses to which this message was sent succesfully.
- 返回:
- Addresses to which the message was sent successfully or null
getValidUnsentAddresses
public Address[] getValidUnsentAddresses()
- Return the addresses that are valid but to which this message
was not sent.
- 返回:
- Addresses that are valid but to which the message was not sent successfully or null
getInvalidAddresses
public Address[] getInvalidAddresses()
- Return the addresses to which this message could not be sent.
- 返回:
- Addresses to which the message sending failed or null;
|
Java EE 5 SDK 深圳电信培训中心.徐海蛟老师. |
||||||||
上一个类 下一个类 | 框架 无框架 | ||||||||
摘要: 嵌套 | 字段 | 构造器 | 方法 | 详细信息: 字段 | 构造器 | 方法 |
提交错误或意见
版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。深圳电信培训中心.徐海蛟老师教学参考.