# HtmlConversionException class

> Raised when a document goes past a limit of the conversion, such as MaxPages. The HTML may be fine, only too large for the limits set; raise them to...

Namespace: [PdfNetStack.Html](https://www.jadev-corp.com/api/pdfnetstack-html/)  
Assembly: PdfNetStack.Html.dll  
Package: `PdfNetStack.Html`

Raised when a document goes past a limit of the conversion, such as
[MaxPages](https://www.jadev-corp.com/api/pdfnetstack-html/htmlconverteroptions/#PdfNetStack_Html_HtmlConverterOptions_MaxPages). The HTML may be fine, only too large for the limits
set; raise them to convert it.

```csharp
public sealed class HtmlConversionException : Exception, ISerializable
```

**Inheritance**

[object](https://learn.microsoft.com/dotnet/api/system.object) ← 
[Exception](https://learn.microsoft.com/dotnet/api/system.exception) ← 
[HtmlConversionException](https://www.jadev-corp.com/api/pdfnetstack-html/htmlconversionexception/)

**Implements**

[ISerializable](https://learn.microsoft.com/dotnet/api/system.runtime.serialization.iserializable)

## Constructors

### <a id="PdfNetStack_Html_HtmlConversionException__ctor_System_String_"></a> HtmlConversionException\(string\)

Creates the exception with a message.

```csharp
public HtmlConversionException(string message)
```

#### Parameters

`message` [string](https://learn.microsoft.com/dotnet/api/system.string)

### <a id="PdfNetStack_Html_HtmlConversionException__ctor_System_String_System_Exception_"></a> HtmlConversionException\(string, Exception\)

Creates the exception with a message and inner exception.

```csharp
public HtmlConversionException(string message, Exception inner)
```

#### Parameters

`message` [string](https://learn.microsoft.com/dotnet/api/system.string)

`inner` [Exception](https://learn.microsoft.com/dotnet/api/system.exception)

### <a id="PdfNetStack_Html_HtmlConversionException__ctor"></a> HtmlConversionException\(\)

Creates the exception with no message.

```csharp
public HtmlConversionException()
```

Source: https://www.jadev-corp.com/pdfnetstack/api/pdfnetstack-html/htmlconversionexception/
