# FilterException Class

> The FilterException class informs about errors which can occur when a text filter is used to convert a document to or from another format.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Class
- **Introduced:** 24.0
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.WPF.SDK` (assembly `TXTextControl.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.dll` from the setup
- **Inherits:** `System.Exception`
- **Path:** TX Text Control .NET for WPF > Reference > TXTextControl > FilterException Class
- **507 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/filterexception/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/filterexception/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/filterexception/llms-full.txt

---

### Description

The FilterException class informs about errors which can occur when a text filter is used to convert a document to or from another format.

### Syntax

```csharp
public class FilterException : Exception
```

```vbnet
Public Class FilterException
    Inherits Exception
```

### Examples

The following example creates a Filter Exception instance and configures its help link setting for a document workflow.

```csharp
FilterException filterException = new(FilterException.FilterError.WrongFileType);
filterException.HelpLink = "Quarterly report";
```

```vbnet
Dim filterException As New FilterException(FilterException.FilterError.WrongFileType)
filterException.HelpLink = "Quarterly report"
```

---

## In This Section

- [FilterException Constructor](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/filterexception/constructor/llms-full.txt): Initializes a new instance of the FilterException class.
- [FilterException.FilterError Enumeration](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/filterexception/filtererror-enumeration/llms-full.txt): Enumerates errors which can occur when a text filter is used to convert a TX Text Control document to or from another format. It contains the following values:
- [FilterException.Reason Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/filterexception/reason-property/llms-full.txt): Gets the error which is the cause of this exception. It can be one of the FilterException.FilterError values.

---

## Nearby

- **Previous:** [EmbeddedFile.Relationship Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/embeddedfile/relationship-property/llms-full.txt)
- **Next:** [FilterException Constructor](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/filterexception/constructor/llms-full.txt)
