SmtpException Constructor
Namespace: Rebex.Net
Assembly: Rebex.Smtp.dll (version 7.0.9147)
SmtpException()
Initializes a new instance of the Smtp
Declaration
public SmtpException()
Remarks
This constructor initializes the Message property of the new instance to a message that describes the general error.
SmtpException(String)
Initializes a new instance of the Smtp
Declaration
public SmtpException(string message)
Parameters
Type | Name | Description |
---|---|---|
String | message | The message that describes the error. |
SmtpException(String, SmtpExceptionStatus)
Initializes a new instance of the Smtp
Declaration
public SmtpException(string message, SmtpExceptionStatus status)
Parameters
Type | Name | Description |
---|---|---|
String | message | The message that describes the error. |
Smtp |
status | One of the Smtp |
Remarks
The status must not be Protocol
SmtpException(String, SmtpExceptionStatus, SmtpRejectedRecipient[])
Initializes a new instance of the Smtp
Declaration
public SmtpException(string message, SmtpExceptionStatus status, SmtpRejectedRecipient[] rejected)
Parameters
Type | Name | Description |
---|---|---|
String | message | The message that describes the error. |
Smtp |
status | One of the Smtp |
Smtp |
rejected | A list of rejected recipients. |
Remarks
The status must not be Protocol
SmtpException(String, Exception)
Initializes a new instance of the Smtp
Declaration
public SmtpException(string message, Exception innerException)
Parameters
Type | Name | Description |
---|---|---|
String | message | The message that describes the error. |
Exception | innerException | The exception that is the cause of the current exception. If the innerException parameter is not a null reference, the current exception is raised in a catch block that handles the inner exception. |
SmtpException(String, Exception, SmtpExceptionStatus)
Initializes a new instance of the Smtp
Declaration
public SmtpException(string message, Exception innerException, SmtpExceptionStatus status)
Parameters
Type | Name | Description |
---|---|---|
String | message | The message that describes the error. |
Exception | innerException | The exception that is the cause of the current exception. If the innerException parameter is not a null reference, the current exception is raised in a catch block that handles the inner exception. |
Smtp |
status | One of the Smtp |
Remarks
The status must not be Protocol
SmtpException(SmtpResponse)
Initializes a new instance of the Smtp
Declaration
public SmtpException(SmtpResponse response)
Parameters
Type | Name | Description |
---|---|---|
Smtp |
response | The Smtp |