## AsposeInvalidOperationException class

The exception that is thrown when a method call is not valid for the current state of the object.

```csharp
public class AsposeInvalidOperationException : AsposeException
```

## Constructors

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

## 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](../../)


