Errors#
nlql.errors —— 类型化异常层级,根 NLQLError,让调用方能按错误阶段精确捕获(解析 / Schema / 注册 / 类型 / 计划 / 执行)。所有 public 错误派生自 NLQLError。
errors
#
Exception hierarchy for NLQL.
All public errors derive from :class:NLQLError so callers can catch the whole
family with a single except. Each stage of the pipeline (parse → validate →
plan → execute) raises its own specific subclass.
NLQLError
#
Bases: Exception
Base class for every error raised by NLQL.
NLQLParseError
#
NLQLParseError(message: str, *, line: int | None = None, column: int | None = None, context: str | None = None)
Bases: NLQLError
Raised when an NLQL string cannot be parsed.
Carries optional source-location info so front-ends can render a helpful pointer at the offending token.