**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
```

当操作被中断时发生。
## 构造函数

| 构造函数 | 描述 |
| --- | --- |
| [OperationInterruptedException(String message)](#OperationInterruptedException-java.lang.String-) | 初始化 `OperationInterruptedException` 类的新实例。 |
| [OperationInterruptedException(String message, Throwable innerException)](#OperationInterruptedException-java.lang.String-java.lang.Throwable-) | 初始化 `OperationInterruptedException` 类的新实例。 |
### OperationInterruptedException(String message) {#OperationInterruptedException-java.lang.String-}
```
public OperationInterruptedException(String message)
```


初始化 `OperationInterruptedException` 类的新实例。

**Parameters:**
| 参数 | 类型 | 描述 |
| --- | --- | --- |
| 消息 | java.lang.String | 异常消息。 |

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


初始化 `OperationInterruptedException` 类的新实例。

**Parameters:**
| 参数 | 类型 | 描述 |
| --- | --- | --- |
| 消息 | java.lang.String | 异常消息。 |
| innerException | java.lang.Throwable | 内部异常。 |

