docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class QueryError

    A QueryError holds the definition of a query parsing error.

    Inheritance
    object
    QueryError
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    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
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)