## ImapException class

The exception that is thrown when an IMAP client cannot complete an operation.

```csharp
public class ImapException : AsposeException
```

## Constructors

| Name | Description |
| --- | --- |
| [ImapException](imapexception/#constructor)() | Initializes a new instance of the `ImapException` class. |
| [ImapException](imapexception/#constructor_1)(string) | Initializes a new instance of the `ImapException` class with the specified error message. |
| [ImapException](imapexception/#constructor_2)(string, Exception) | Initializes a new instance of the `ImapException` class with the specified error message and a reference to the exception that caused it. |
| [ImapException](imapexception/#constructor_3)(string, params object[]) | Initializes a new instance of the `ImapException` class with an error message built from a composite format string. |

## Properties

| Name | Description |
| --- | --- |
| [ErrorDetails](../../aspose.email/asposeexception/errordetails/) { get; } | Gets additional information about the error, if the operation provides any. |
| override [Message](../../aspose.email/asposeexception/message/) { get; } | Gets the message that describes the error. |

## Methods

| Name | Description |
| --- | --- |
| override [ToString](../../aspose.email/asposeexception/tostring/)() | Returns the type, the message and the stack trace of the exception. |

### See Also

* class [AsposeException](../asposeexception/)
* namespace [Aspose.Email](../../aspose.email/)
* assembly [Aspose.Email](../../)


