Class QueryError
A QueryError holds the definition of a query parsing error.
Namespace: Unity.QuickSearch
Syntax
public class QueryError
Constructors
QueryError()
Construct a new QueryError with a default length of 0.
Declaration
public QueryError()
QueryError(Int32, Int32, String)
Construct a new QueryError.
Declaration
public QueryError(int index, int length, string reason)
Parameters
Type | Name | Description |
---|---|---|
Int32 | index | Index where the error happened. |
Int32 | length | Length of the block that was being parsed. |
String | reason | Reason why the parsing failed. |
QueryError(Int32, String)
Construct a new QueryError with a default length of 1.
Declaration
public QueryError(int index, string reason)
Parameters
Type | Name | Description |
---|---|---|
Int32 | 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 |
---|---|
Int32 |
length
Length of the block that was being parsed.
Declaration
public int length { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
reason
Reason why the parsing failed.
Declaration
public string reason { get; set; }
Property Value
Type | Description |
---|---|
String |