## OperationCanceledException class

Represents errors that occur when an operation canceled.

```csharp
public class OperationCanceledException : AsposeException
```

## Constructors

| Name | Description |
| --- | --- |
| [OperationCanceledException](operationcanceledexception/#constructor)() | Initializes a new instance of the OperationCanceledException class. |
| [OperationCanceledException](operationcanceledexception/#constructor_1)(string) | Initializes a new instance of the OperationCanceledException class with a specified error message. |
| [OperationCanceledException](operationcanceledexception/#constructor_2)(string, Exception) | Initializes a new instance of the OperationCanceledException class with a specified error message and a reference to the inner exception that is the cause of this exception. |
| [OperationCanceledException](operationcanceledexception/#constructor_3)(string, params object[]) | Initializes a new instance of the OperationCanceledException class with a specified error message. |

## 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](../../aspose.email/asposeexception/)
* namespace [Aspose.Email.Exceptions](../../aspose.email.exceptions/)
* assembly [Aspose.Email](../../)


