# QueryError

> Construct a new QueryError.

## Definition

* **Type:** Constructor
* **Namespace:** [UnityEditor.Search](/engine/6000.6/script-reference/unityeditor/search.md)
* **Assembly:** UnityEditor

## QueryError()

Construct a new QueryError.

```csharp
public QueryError()
```

## QueryError(int, string)

Construct a new QueryError.

```csharp
public QueryError(int index, string reason)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): Index where the error happened.**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): Reason why the parsing failed.

## QueryError(int, int, string)

Construct a new QueryError.

```csharp
public QueryError(int index, int length, string reason)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): Index where the error happened.**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): Length of the block that was being parsed.**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): Reason why the parsing failed.
