public class SmtpException extends AsposeException
Represents the exception that is thrown when the SmtpClient is not able to complete an operation.
| Constructor and Description |
|---|
SmtpException()
Initializes a new instance of the
SmtpException class |
SmtpException(int statusCode)
Initializes a new instance of the
SmtpException class |
SmtpException(int statusCode,
String message)
Initializes a new instance of the
SmtpException class |
SmtpException(String message)
Initializes a new instance of the
SmtpException class |
SmtpException(String message,
MailMessage mailMessage)
Initializes a new instance of the
SmtpException class |
SmtpException(String message,
SendMessagesResult result)
Initializes a new instance of the
SmtpException class |
SmtpException(String message,
Throwable innerException)
Initializes a new instance of the
SmtpException class |
SmtpException(String message,
Throwable innerException,
MailMessage mailMessage)
Initializes a new instance of the
SmtpException class |
| Modifier and Type | Method and Description |
|---|---|
SendMessagesResult |
getOperationDetails()
Gets extra information aboout error
|
int |
getStatusCode()
Smtp status code
|
void |
setStatusCode(int value)
Smtp status code
|
getErrorDetails, getMessage, toStringgetHResult, getInnerException, getType, setErrorCode, setHResultaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTracepublic SmtpException(int statusCode)
Initializes a new instance of the SmtpException class
statusCode - Smtp status codepublic SmtpException(int statusCode,
String message)
Initializes a new instance of the SmtpException class
statusCode - Smtp status codemessage - Error messagepublic SmtpException()
Initializes a new instance of the SmtpException class
public SmtpException(String message)
Initializes a new instance of the SmtpException class
message - Error messagepublic SmtpException(String message, SendMessagesResult result)
Initializes a new instance of the SmtpException class
message - Error messageresult - Operation resultpublic SmtpException(String message, Throwable innerException)
Initializes a new instance of the SmtpException class
message - Error messageinnerException - The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified.public SmtpException(String message, Throwable innerException, MailMessage mailMessage)
Initializes a new instance of the SmtpException class
message - Error messageinnerException - The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified.mailMessage - public SmtpException(String message, MailMessage mailMessage)
Initializes a new instance of the SmtpException class
message - Error messagepublic final int getStatusCode()
Smtp status code
public final void setStatusCode(int value)
Smtp status code
public final SendMessagesResult getOperationDetails()
Gets extra information aboout error
Copyright (c) 2008-2021 Aspose Pty Ltd. All Rights Reserved.