# FormulaException Class

> The FormulaException class informs about an invalid syntax or missing parameters of formulas used in tables.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Class
- **Introduced:** 26.0
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.Core.SDK` (assembly `TXTextControl.Core.dll`, from the private NuGet feed or Text Control Offline Packages)
- **Package:** `TXTextControl.TextControl.ASP.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 Server > Reference > TXTextControl > FormulaException Class
- **382 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/formulaexception/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/formulaexception/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/formulaexception/llms-full.txt

---

### Description

The FormulaException class informs about an invalid syntax or missing parameters of formulas used in tables.

### Syntax

```csharp
public class FormulaException : Exception
```

```vbnet
Public Class FormulaException
    Inherits Exception
```

### Examples

The following example includes the message value from a Formula Exception object in application diagnostics. The created object is then available to the surrounding document workflow.

```csharp
Console.WriteLine($"Message: {formulaException.Message}");
Console.WriteLine("Formula Exception is ready for use.");
```

```vbnet
Console.WriteLine($"Message: {formulaException.Message}")
Console.WriteLine("Formula Exception is ready for use.")
```

---

## In This Section

- [FormulaException.CharacterIndex Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/formulaexception/characterindex-property/llms-full.txt): Gets the one-based character index of the first invalid character in the formula string.

---

## Nearby

- **Previous:** [FormFieldEventArgs.FormField Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/formfieldeventargs/formfield-property/llms-full.txt)
- **Next:** [FormulaException.CharacterIndex Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/formulaexception/characterindex-property/llms-full.txt)
