# 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.4.0
- HTML page: https://docs.datalogics.com/apdfl21/ModernCPP/21.4.0/class/WebConvertError
- Version index: https://docs.datalogics.com/apdfl21/ModernCPP/21.4.0/llms.txt

```cpp
class WebConvertError : runtime_error
```

**Namespace:** `datalogics_interface`

**Inherits from:** `runtime_error`

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

### plugin_result_code

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

**Returns:** `int`

WebToPDFResultCode value.
