> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Constructor SyntaxError

Namespace: [Phoenix.ComponentPlugInSDK.Models](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/apidocs/Phoenix.ComponentPlugInSDK.Models)\
Assembly: Phoenix.ComponentPlugInSDK.dll

## SyntaxError(int, string)

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

```csharp theme={null}
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 theme={null}
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 theme={null}
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 theme={null}
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.
