Name
SendFailedException
Synopsis
This exception is thrown when a message could not be sent to one or more of
its recipients. The getValidSentAddresses()
will return the
addresses to which the message was sent successfully, the
getInvalidAddresses()
method returns the addresses that could not
be sent to, and the getValidUnsentAddresses()
method
returns the addresses to which the message could have been sent, but
wasn’t.
public class SendFailedException extends MessagingException { // Public Constructors public SendFailedException(); public SendFailedException( String s); public SendFailedException( String s, Exception e); public SendFailedException(String msg, Exception ex, Address[] validSent, Address[] validUnsent, Address[] invalid); // Property Accessor Methods (by property name) public Address[] getInvalidAddresses(); // default:null public Address[] getValidSentAddresses(); // default:null public Address[] getValidUnsentAddresses(); // default:null // Protected Instance Fields protected transient Address[] invalid; protected transient Address[] validSent; protected transient Address[] validUnsent; }
Get Java Enterprise in a Nutshell, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.