**Inheritance:**
java.lang.Object, java.lang.Throwable, java.lang.Exception, java.lang.RuntimeException, com.aspose.ms.System.Exception, [com.aspose.imaging.coreexceptions.FrameworkException](../../com.aspose.imaging.coreexceptions/frameworkexception)
```
public class OperationInterruptedException extends FrameworkException
```

Occurs when an operation is interrupted.
## Constructors

| Constructor | Description |
| --- | --- |
| [OperationInterruptedException(String message)](#OperationInterruptedException-java.lang.String-) | Initializes a new instance of the `OperationInterruptedException` class. |
| [OperationInterruptedException(String message, Throwable innerException)](#OperationInterruptedException-java.lang.String-java.lang.Throwable-) | Initializes a new instance of the `OperationInterruptedException` class. |
### OperationInterruptedException(String message) {#OperationInterruptedException-java.lang.String-}
```
public OperationInterruptedException(String message)
```


Initializes a new instance of the `OperationInterruptedException` class.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| message | java.lang.String | The exception message. |

### OperationInterruptedException(String message, Throwable innerException) {#OperationInterruptedException-java.lang.String-java.lang.Throwable-}
```
public OperationInterruptedException(String message, Throwable innerException)
```


Initializes a new instance of the `OperationInterruptedException` class.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| message | java.lang.String | The exception message. |
| innerException | java.lang.Throwable | The inner exception. |

