Rebex
Products Downloads Buy Support Contact
Show / Hide Table of Contents

ImapException Constructor

Namespace: Rebex.Net
Assembly: Rebex.Imap.dll (version 7.0.9147)

ImapException()

Initializes a new instance of the ImapException class.

Declaration
public ImapException()
Remarks

This constructor initializes the Message property of the new instance to a message that describes the general error.

ImapException(String)

Initializes a new instance of the ImapException class with the specified error message.

Declaration
public ImapException(string message)
Parameters
Type Name Description
String message

The message that describes the error.

ImapException(String, ImapExceptionStatus)

Initializes a new instance of the ImapException class with the specified error message and status.

Declaration
public ImapException(string message, ImapExceptionStatus status)
Parameters
Type Name Description
String message

The message that describes the error.

ImapExceptionStatus status

One of the ImapExceptionStatus values.

ImapException(String, Exception)

Initializes a new instance of the ImapException class with the specified error message and a reference to the inner exception that is the cause of this exception.

Declaration
public ImapException(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.

ImapException(String, Exception, ImapExceptionStatus)

Initializes a new instance of the ImapException class with the specified error message, status, and a reference to the inner exception that is the cause of this exception.

Declaration
public ImapException(string message, Exception innerException, ImapExceptionStatus 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.

ImapExceptionStatus status

One of the ImapExceptionStatus values.

ImapException(ImapResponse)

Initializes a new instance of the ImapException class with the specified ImapResponse.

Declaration
public ImapException(ImapResponse response)
Parameters
Type Name Description
ImapResponse response

The ImapResponse.

In This Article
  • ImapException()
  • ImapException(String)
  • ImapException(String, ImapExceptionStatus)
  • ImapException(String, Exception)
  • ImapException(String, Exception, ImapExceptionStatus)
  • ImapException(ImapResponse)
© REBEX ČR s.r.o. Back to top
Privacy policy
Manage cookies