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

ConstructorDescription
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

MethodDescription
addSuppressed(Throwable arg0)
equals(Object arg0)
fillInStackTrace()
getCause()
getClass()
getErrorDetails()Gets extra information aboout error
getFailedRecipient()Failed recipient
getInnerException()
getLocalizedMessage()
getMessage()Gets a message that describes the current exception.
getOperationDetails()Gets extra information aboout error
getStackTrace()
getStatusCode()Smtp status code
getSuppressed()
getType()
hashCode()
initCause(Throwable arg0)
notify()
notifyAll()
printStackTrace()
printStackTrace(PrintStream arg0)
printStackTrace(PrintWriter arg0)
setStackTrace(StackTraceElement[] arg0)
setStatusCode(int value)Smtp status code
toString()Returns a string that represents the current object.
wait()
wait(long arg0)
wait(long arg0, int arg1)

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:

ParameterTypeDescription
messagejava.lang.StringError message

SmtpFailedRecipientException(String message, Throwable innerException)

public SmtpFailedRecipientException(String message, Throwable innerException)

Initializes a new instance of the SmtpFailedRecipientException class

Parameters:

ParameterTypeDescription
messagejava.lang.StringError message
innerExceptionjava.lang.ThrowableThe 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:

ParameterTypeDescription
statusCodeintStatus code
failedRecipientjava.lang.StringFailed 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:

ParameterTypeDescription
statusCodeintStatus code
failedRecipientjava.lang.StringFailed recipient
serverResponsejava.lang.StringServer 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:

ParameterTypeDescription
messagejava.lang.StringError message
failedRecipientjava.lang.StringFailed recipient
innerExceptioncom.aspose.ms.System.ExceptionThe exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified.

addSuppressed(Throwable arg0)

public final synchronized void addSuppressed(Throwable arg0)

Parameters:

ParameterTypeDescription
arg0java.lang.Throwable

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

ParameterTypeDescription
arg0java.lang.Object

Returns: boolean

fillInStackTrace()

public synchronized Throwable fillInStackTrace()

Returns: java.lang.Throwable

getCause()

public synchronized Throwable getCause()

Returns: java.lang.Throwable

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getErrorDetails()

public final Object getErrorDetails()

Gets extra information aboout error

Returns: java.lang.Object

getFailedRecipient()

public final String getFailedRecipient()

Failed recipient

Returns: java.lang.String

getInnerException()

public Throwable getInnerException()

Returns: java.lang.Throwable

getLocalizedMessage()

public String getLocalizedMessage()

Returns: java.lang.String

getMessage()

public String getMessage()

Gets a message that describes the current exception.

Returns: java.lang.String

getOperationDetails()

public final SendMessagesResult getOperationDetails()

Gets extra information aboout error

Returns: SendMessagesResult

getStackTrace()

public StackTraceElement[] getStackTrace()

Returns: java.lang.StackTraceElement[]

getStatusCode()

public final int getStatusCode()

Smtp status code

Returns: int

getSuppressed()

public final synchronized Throwable[] getSuppressed()

Returns: java.lang.Throwable[]

getType()

public System.Type getType()

Returns: com.aspose.ms.System.Type

hashCode()

public native int hashCode()

Returns: int

initCause(Throwable arg0)

public synchronized Throwable initCause(Throwable arg0)

Parameters:

ParameterTypeDescription
arg0java.lang.Throwable

Returns: java.lang.Throwable

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

printStackTrace()

public void printStackTrace()

printStackTrace(PrintStream arg0)

public void printStackTrace(PrintStream arg0)

Parameters:

ParameterTypeDescription
arg0java.io.PrintStream

printStackTrace(PrintWriter arg0)

public void printStackTrace(PrintWriter arg0)

Parameters:

ParameterTypeDescription
arg0java.io.PrintWriter

setStackTrace(StackTraceElement[] arg0)

public void setStackTrace(StackTraceElement[] arg0)

Parameters:

ParameterTypeDescription
arg0java.lang.StackTraceElement[]

setStatusCode(int value)

public final void setStatusCode(int value)

Smtp status code

Parameters:

ParameterTypeDescription
valueint

toString()

public String toString()

Returns a string that represents the current object.

Returns: java.lang.String - A string that represents the current object.

wait()

public final void wait()

wait(long arg0)

public final native void wait(long arg0)

Parameters:

ParameterTypeDescription
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParameterTypeDescription
arg0long
arg1int