Class QueryError
A QueryError holds the definition of a query parsing error.
Inherited Members
Namespace: UnityEditor.Search
Assembly: com.unity.quicksearch.dll
Syntax
public class QueryError
Constructors
QueryError()
Construct a new QueryError with a default length of 0.
Declaration
public QueryError()
QueryError(int, int, string)
Construct a new QueryError.
Declaration
public QueryError(int index, int length, string reason)
Parameters
| Type | Name | Description |
|---|---|---|
| int | index | Index where the error happened. |
| int | length | Length of the block that was being parsed. |
| string | reason | Reason why the parsing failed. |
QueryError(int, string)
Construct a new QueryError with a default length of 1.
Declaration
public QueryError(int index, string reason)
Parameters
| Type | Name | Description |
|---|---|---|
| int | index | Index where the error happened. |
| string | reason | Reason why the parsing failed. |
Properties
index
Index where the error happened.
Declaration
public int index { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
length
Length of the block that was being parsed.
Declaration
public int length { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
reason
Reason why the parsing failed.
Declaration
public string reason { get; set; }
Property Value
| Type | Description |
|---|---|
| string |