    

 ## On this page

  

 

 # Constructor SyntaxError

 Last update: 19.06.2026 

Namespace: [Phoenix.ComponentPlugInSDK.Models](Phoenix.ComponentPlugInSDK.Models.md)  
Assembly: Phoenix.ComponentPlugInSDK.dll

## SyntaxError(int, string)

Constructor from line index where error was detected and descriptive reason.

```csharp
public SyntaxError(int lineIndex, string reason)


```

### Parameters

`lineIndex` [int](https://learn.microsoft.com/dotnet/api/system.int32)

Line index where error was detected.

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

Descriptive reason of the error.

## SyntaxError(int, Exception)

Constructor from line index where error was detected and inner exception which gives reason.

```csharp
public SyntaxError(int lineIndex, Exception innerException)


```

### Parameters

`lineIndex` [int](https://learn.microsoft.com/dotnet/api/system.int32)

Line index where error was detected.

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

Inner exception which is the cause of this error.

## SyntaxError(int, string)

Constructor from line index where error was detected and descriptive reason.

```csharp
public SyntaxError(int lineIndex, string reason)


```

### Parameters

`lineIndex` [int](https://learn.microsoft.com/dotnet/api/system.int32)

Line index where error was detected.

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

Descriptive reason of the error.

## SyntaxError(int, Exception)

Constructor from line index where error was detected and inner exception which gives reason.

```csharp
public SyntaxError(int lineIndex, Exception innerException)


```

### Parameters

`lineIndex` [int](https://learn.microsoft.com/dotnet/api/system.int32)

Line index where error was detected.

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

Inner exception which is the cause of this error.