Movatterモバイル変換


[0]ホーム

URL:


         


Class SendFailedException

java.lang.Object  |  +--java.lang.Throwable        |        +--java.lang.Exception              |              +--javax.mail.MessagingException                    |                    +--javax.mail.SendFailedException
All Implemented Interfaces:
java.io.Serializable

public classSendFailedException
extendsMessagingException

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.

See Also:
Transport.send(javax.mail.Message),Transport.sendMessage(javax.mail.Message, javax.mail.Address[]),TransportEvent,Serialized Form

invalid
           
validSent
           
validUnsent
           
 
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.
 
getInvalidAddresses()
          Return the addresses to which this message could not be sent.
getValidSentAddresses()
          Return the addresses to which this message was sent succesfully.
getValidUnsentAddresses()
          Return the addresses that are valid but to which this message was not sent.
 
Methods inherited from class javax.mail.MessagingException
getMessage,getNextException,setNextException
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, printStackTrace, printStackTrace, printStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

invalid

protected transientAddress[]invalid

validSent

protected transientAddress[]validSent

validUnsent

protected transientAddress[]validUnsent

SendFailedException

publicSendFailedException()
Constructs a SendFailedException with no detail message.

SendFailedException

publicSendFailedException(java.lang.String s)
Constructs a SendFailedException with the specified detail message.
Parameters:
s - the detail message

SendFailedException

publicSendFailedException(java.lang.String s,                           java.lang.Exception e)
Constructs a SendFailedException with the specified Exception and detail message. The specified exception is chained to this exception.
Parameters:
s - the detail message
e - the embedded exception
See Also:
MessagingException.getNextException(),MessagingException.setNextException(java.lang.Exception)

SendFailedException

publicSendFailedException(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.
Parameters:
msg - the detail message
ex - the embedded exception
validSent - valid addresses to which message was sent
validUnsent - valid addresses to which message was not sent
invalid - the invalid addresses
See Also:
MessagingException.getNextException(),MessagingException.setNextException(java.lang.Exception)

getValidSentAddresses

publicAddress[]getValidSentAddresses()
Return the addresses to which this message was sent succesfully.
Returns:
Addresses to which the message was sent successfully or null

getValidUnsentAddresses

publicAddress[]getValidUnsentAddresses()
Return the addresses that are valid but to which this message was not sent.
Returns:
Addresses that are valid but to which the message was not sent successfully or null

getInvalidAddresses

publicAddress[]getInvalidAddresses()
Return the addresses to which this message could not be sent.
Returns:
Addresses to which the message sending failed or null;

         


[8]ページ先頭

©2009-2025 Movatter.jp