# WebConvertError Class

> Thrown by web-to-PDF conversion when the underlying plugin reports a non-cancellation failure.

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

```cpp
class WebConvertError : Error
```

**Namespace:** `datalogics_interface`

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

## Description

Thrown by web-to-PDF conversion when the underlying plugin reports a non-cancellation failure. Carries the C-layer result code and textual detail in addition to the human-readable what() string.

## Constructors

### WebConvertError

```cpp
datalogics_interface::WebConvertError::WebConvertError(Category category, int plugin_result_code, const std::string &detail)
```

*constructor*

**Parameters**

- `category` (`Category`)
- `plugin_result_code` (`int`)
- `detail` (`const std::string &`)

## Methods

### category

```cpp
Category datalogics_interface::WebConvertError::category() const noexcept
```

**Returns:** `Category`

### detail

```cpp
const std::string & datalogics_interface::WebConvertError::detail() const noexcept
```

**Returns:** `const std::string &`

from WebToPDFGetLastError

### 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.

### plugin_result_code

```cpp
int datalogics_interface::WebConvertError::plugin_result_code() const noexcept
```

**Returns:** `int`

WebToPDFResultCode value.
