ドキュメント

Unity Engine

Unity Engine

SearchQueryError

Creates a new SearchQueryError.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

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

Index where the error occurred.

length

Length of the block that was being parsed.

reason

The reason for the error.

The context in which this error was logged.

Which search provider logged this error.

fromSearchQuery

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.

fromSearchQuery

Set to true if this error comes from parsing the searchQuery. This will correctly offset the index with respect to the raw text.