public class InvalidRecipientAddressException extends TemplateEmailException
A subclass of TemplateEmailException that occurs when an email Message is being constructed for a particular recipient, and the recipient's email address turns out to be invalid.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
Constructor and Description |
---|
InvalidRecipientAddressException(java.lang.String pString,
javax.mail.Message pEmailMessage)
Constructs a new InvalidRecipientAddressException with the
given explanation and email Message object.
|
InvalidRecipientAddressException(java.lang.String pString,
java.lang.String pInvalidRecipientAddress,
javax.mail.Message pEmailMessage)
Constructs a new InvalidRecipientAddressException with the given
explanation, invalid recipient address, and email Message object.
|
InvalidRecipientAddressException(java.lang.String pString,
java.lang.String pInvalidRecipientAddress,
javax.mail.Message pEmailMessage,
java.lang.Throwable pRootCause)
Constructs a new InvalidRecipientAddressException with the given
explanation, invalid recipient address, email Message object, and
root exception.
|
Modifier and Type | Method and Description |
---|---|
javax.mail.Message |
getEmailMessage()
Returns the email Message object whose recipient field could
not be set because of the invalid email address.
|
java.lang.String |
getInvalidRecipientAddress()
Returns the invalid recipient address.
|
getRootCause
getMessageArguments, getSourceException, printStackTrace, printStackTrace, printStackTrace, printStackTrace, setMessageArguments, setSourceException, toString, toString
public InvalidRecipientAddressException(java.lang.String pString, javax.mail.Message pEmailMessage)
public InvalidRecipientAddressException(java.lang.String pString, java.lang.String pInvalidRecipientAddress, javax.mail.Message pEmailMessage)
public InvalidRecipientAddressException(java.lang.String pString, java.lang.String pInvalidRecipientAddress, javax.mail.Message pEmailMessage, java.lang.Throwable pRootCause)
public java.lang.String getInvalidRecipientAddress()
public javax.mail.Message getEmailMessage()