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,
Throwable innerException)
Initializes a new instance of the
SmtpException class |
Modifier and Type | Method and Description |
---|---|
int |
getStatusCode()
Smtp status code
|
void |
setStatusCode(int value)
Smtp status code
|
getErrorDetails, getMessage, toString
getHResult, getInnerException, getType, setErrorCode, setHResult
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
public 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, 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.