# OperationCancelledException Class

> Thrown when a user-supplied progress callback returns false to cancel a long-running operation.

- Product: Adobe PDF Library 21
- Language: Modern C++
- Version: 21.4.0
- HTML page: https://docs.datalogics.com/apdfl21/ModernCPP/21.4.0/class/OperationCancelledException
- Version index: https://docs.datalogics.com/apdfl21/ModernCPP/21.4.0/llms.txt

```cpp
class OperationCancelledException : runtime_error
```

**Namespace:** `datalogics_interface`

**Inherits from:** `runtime_error`

## Description

Thrown when a user-supplied progress callback returns false to cancel a long-running operation. Distinct from WebConvertError so that non-coupling catch handlers can quietly handle cancellation without also being aware of the web-conversion subsystem.

## Constructors

### OperationCancelledException

```cpp
datalogics_interface::OperationCancelledException::OperationCancelledException()
```

*constructor*

### OperationCancelledException

```cpp
datalogics_interface::OperationCancelledException::OperationCancelledException(const std::string &message)
```

*constructor*

**Parameters**

- `message` (`const std::string &`)
