SearchQueryError
Creates a new SearchQueryError.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Constructor
- Namespace: UnityEditor.Search
- Assembly: UnityEditor
SearchQueryError(int, int, string, SearchContext, SearchProvider, bool, SearchQueryErrorType)
Creates a new SearchQueryError.
public SearchQueryError(int index, int length, string reason, SearchContext context, SearchProvider provider, bool fromSearchQuery = true, SearchQueryErrorType type = SearchQueryErrorType.Error)
Parameters
Index where the error occurred.
Length of the block that was being parsed.
The reason for the error.
The context in which this error was logged.
Which search provider logged this error.
Set to true if this error comes from parsing the searchQuery. This will correctly offset the index with respect to the raw text.
The type of query error. See SearchQueryErrorType. Defaults to SearchQueryErrorType.Error.
SearchQueryError(QueryError, SearchContext, SearchProvider, bool)
Creates a new SearchQueryError from an existing QueryError.
public SearchQueryError(QueryError error, SearchContext context, SearchProvider provider, bool fromSearchQuery = true)
Parameters
The original QueryError.
The context in which this error was logged.
Which search provider logged this error.
Set to true if this error comes from parsing the searchQuery. This will correctly offset the index with respect to the raw text.