Initializes a new instance of the SmtpException class with the specified error message and status.
Namespace:
Rebex.Net
Assembly:
Rebex.Smtp (in Rebex.Smtp.dll)
Syntax
Visual Basic |
---|
Public Sub New ( _ message As String, _ status As SmtpExceptionStatus _ ) |
C# |
---|
public SmtpException( string message, SmtpExceptionStatus status ) |
Parameters
- message
- Type: System..::..String
The message that describes the error.
- status
- Type: Rebex.Net..::..SmtpExceptionStatus
One of the SmtpExceptionStatus values.
Remarks
The status must not be ProtocolError. Use SmtpException (SmtpResponse response) constructor for creating protocol error exceptions.