ts::QueryException class

Syntax error in a Query string.

Contents

Thrown by the constructor of Query if there is an error in the syntax of the query string.

Contains the raw error type from Tree-Sitter and the position of the error in the query string.

Base classes

class TreeSitterException
Base exception class for errors in the Tree-Sitter wrapper.

Public functions

auto query_error() const -> TSQueryError
Raw Tree-Sitter query error.
auto error_offset() const -> std::uint32_t
Offset of the error in the query string.