Version: 2023.2
LanguageEnglish
  • C#

QueryError

class in UnityEditor.Search

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

A QueryError holds the definition of a query parsing error.

QueryErrors are obtained when parsing a query through the function QueryEngine.Parse. See QueryEngine for an example where we recover parsing errors when a query is invalid.

Properties

indexIndex where the error happened.
lengthLength of the block that was being parsed.
reasonReason why the parsing failed.

Constructors

QueryErrorConstruct a new QueryError.