# NotSupportedError Class

> The call is correct, but this build of the library cannot serve it.

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

```cpp
class NotSupportedError : Error
```

**Namespace:** `datalogics_interface`

**Inherits from:** [`Error`](https://docs.datalogics.com/apdfl21/ModernCPP/21.5.0/class/Error.md)

## Description

The call is correct, but this build of the library cannot serve it.

A platform carries a feature that another platform does not. Catch this type to fall back to a different route rather than to report a failure.

## Constructors

### NotSupportedError

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

*constructor*

**Parameters**

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

## Methods

### get_error_code

```cpp
DL_ERROR_MEMBER int datalogics_interface::Error::get_error_code() const noexcept
```

**Returns:** `DL_ERROR_MEMBER int`

The Adobe PDF Library error code, or 0 when the failure carries none.

Decode the value with the APDFL `ErrGetSeverity`, `ErrGetSystem` and `ErrGetCode` macros, or compare it against a whole code.
