Skip to main content

Module errors

Module errors 

Source
Expand description

Structured, machine-readable errors for the VlorQl core.

Every error keeps both a typed error kind and a JSON details payload. The typed kind is useful to Rust callers, while the payload allows callers to preserve additional context without parsing an error string.

Structs§

CompilationError
A convenient constructor namespace for compilation errors.
ConfigError
A convenient constructor namespace for configuration errors.
ErrorResponse
The response shape exposed by API and LLM-facing layers.
LlmError
A convenient constructor namespace for LLM errors.
PolicyError
A convenient constructor namespace for policy errors.
SchemaError
A convenient constructor namespace for schema errors.
ValidationError
A convenient constructor namespace for validation errors.
ValidationErrors
A collection of validation errors returned after validating a whole request.

Enums§

AuditErrorKind
Errors raised by the SQL-injection audit stage.
CompilationErrorKind
Errors raised while compiling a validated plan into SQL.
ConfigErrorKind
Errors caused by an incomplete or invalid VlorQl configuration.
LlmErrorKind
Errors returned by an LLM provider or while decoding its response.
PolicyErrorKind
Errors raised when a query violates an access policy.
SchemaErrorKind
Errors caused by a schema that cannot satisfy a query plan.
ValidationErrorKind
Errors found while validating an LLM-generated query plan.
VlorQLError
A structured error from the VlorQl core.

Functions§

validate
Returns Ok(()) when the iterator contains no errors, or aggregates all errors.