SmtpFailedRecipientException

Inheritance: java.lang.Object, java.lang.Throwable, java.lang.Exception, java.lang.RuntimeException, com.aspose.ms.System.Exception, com.aspose.email.AsposeException, com.aspose.email.SmtpException

public class SmtpFailedRecipientException extends SmtpException

Represents the exception which arises when the specified recipient is wrong

Constructors

Constructor Description
SmtpFailedRecipientException() Initializes a new instance of the SmtpFailedRecipientException class
SmtpFailedRecipientException(String message) Initializes a new instance of the SmtpFailedRecipientException class
SmtpFailedRecipientException(String message, Throwable innerException) Initializes a new instance of the SmtpFailedRecipientException class
SmtpFailedRecipientException(int statusCode, String failedRecipient) Initializes a new instance of the SmtpFailedRecipientException class
SmtpFailedRecipientException(int statusCode, String failedRecipient, String serverResponse) Initializes a new instance of the SmtpFailedRecipientException class
SmtpFailedRecipientException(String message, String failedRecipient, System.Exception innerException) Initializes a new instance of the SmtpFailedRecipientException class

Methods

Method Description
getFailedRecipient() Failed recipient

SmtpFailedRecipientException()

public SmtpFailedRecipientException()

Initializes a new instance of the SmtpFailedRecipientException class

SmtpFailedRecipientException(String message)

public SmtpFailedRecipientException(String message)

Initializes a new instance of the SmtpFailedRecipientException class

Parameters:

Parameter Type Description
message java.lang.String Error message

SmtpFailedRecipientException(String message, Throwable innerException)

public SmtpFailedRecipientException(String message, Throwable innerException)

Initializes a new instance of the SmtpFailedRecipientException class

Parameters:

Parameter Type Description
message java.lang.String Error message
innerException java.lang.Throwable The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified.

SmtpFailedRecipientException(int statusCode, String failedRecipient)

public SmtpFailedRecipientException(int statusCode, String failedRecipient)

Initializes a new instance of the SmtpFailedRecipientException class

Parameters:

Parameter Type Description
statusCode int Status code
failedRecipient java.lang.String Failed recipient

SmtpFailedRecipientException(int statusCode, String failedRecipient, String serverResponse)

public SmtpFailedRecipientException(int statusCode, String failedRecipient, String serverResponse)

Initializes a new instance of the SmtpFailedRecipientException class

Parameters:

Parameter Type Description
statusCode int Status code
failedRecipient java.lang.String Failed recipient
serverResponse java.lang.String Server response

SmtpFailedRecipientException(String message, String failedRecipient, System.Exception innerException)

public SmtpFailedRecipientException(String message, String failedRecipient, System.Exception innerException)

Initializes a new instance of the SmtpFailedRecipientException class

Parameters:

Parameter Type Description
message java.lang.String Error message
failedRecipient java.lang.String Failed recipient
innerException com.aspose.ms.System.Exception The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified.

getFailedRecipient()

public final String getFailedRecipient()

Failed recipient

Returns: java.lang.String