# FilterException.Reason Property

> Gets the error which is the cause of this exception. It can be one of the FilterException.FilterError values.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Property
- **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
- **Path:** TX Text Control .NET for WPF > Reference > TXTextControl > FilterException.Reason Property
- **333 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/filterexception/reason-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/filterexception/reason-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/filterexception/reason-property/llms-full.txt

---

### Description

Gets the error which is the cause of this exception. It can be one of the [FilterException.FilterError](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/filterexception/filtererror-enumeration/llms-full.txt) values.

### Syntax

```csharp
public FilterException.FilterError Reason { get; }
```

```vbnet
Public ReadOnly Property Reason As FilterException.FilterError
```

### Examples

The following example includes the reason value in application diagnostics. The created object is then available to the surrounding document workflow.

```csharp
Console.WriteLine($"Reason: {filterException.Reason}");
Console.WriteLine("Filter Exception is ready for use.");
```

```vbnet
Console.WriteLine($"Reason: {filterException.Reason}")
Console.WriteLine("Filter Exception is ready for use.")
```

### Limitations

Read only.

---

## Nearby

- **Previous:** [FilterException.FilterError Enumeration](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/filterexception/filtererror-enumeration/llms-full.txt)
- **Next:** [FindOptions Enumeration](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/findoptions/enumeration/llms-full.txt)
