# TextEditorException Constructor

> Initializes a new instance of the TextEditorException class.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Constructor
- **Introduced:** 24.0
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.WinForms.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 Windows Forms > Reference > TXTextControl > TextEditorException Constructor
- **702 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/texteditorexception/constructor/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/texteditorexception/constructor/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/texteditorexception/constructor/llms-full.txt

---

### Description

Initializes a new instance of the TextEditorException class.

### Syntax

#### TextEditorException()

Initializes a new instance of the TextEditorException class.

```csharp
public TextEditorException();
```

```vbnet
Public Sub New()
```

#### TextEditorException(string)

Initializes a new instance of the TextEditorException class with a specified error message.

```csharp
public TextEditorException(string message);
```

```vbnet
Public Sub New(message As String)
```

| Parameter | Description |
|---|---|
| message | The error message that explains the reason for the exception. |

#### TextEditorException(string, Exception)

Initializes a new instance of the TextEditorException class with a specified error message and a reference to the inner exception that is the cause of this exception.

```csharp
public TextEditorException(string message, Exception inner);
```

```vbnet
Public Sub New(message As String, inner As Exception)
```

| Parameter | Description |
|---|---|
| message | The error message that explains the reason for the exception. |
| inner | The exception that is the cause of the current exception. |

### Examples

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

```csharp
TextEditorException textEditorException = new();
textEditorException.HelpLink = "Quarterly report";
```

```vbnet
Dim textEditorException As New TextEditorException()
textEditorException.HelpLink = "Quarterly report"
```

---

## Nearby

- **Previous:** [TextEditorException Class](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/texteditorexception/llms-full.txt)
- **Next:** [TextField Class](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textfield/llms-full.txt)
