Exceptions
smrititantra.exceptions
The typed exception hierarchy.
Every error the package raises derives from :class:SmrititantraError. Each class
carries http_status so the HTTP layer's error mapping is defined once, here,
and the remote SDK can re-raise the exact type from an error body's class name.
AuthError
BindingVerificationError
ConfigError
EmbedderNotConfiguredError
Bases: SmrititantraError
An embedding-dependent path was forced without SMRITITANTRA_EMBED_URL/_MODEL set.
ExecutionRejected(message: str, reason: str = 'policy')
Bases: SmrititantraError
The execution edge refused a query (write keyword, unknown table,
masked column, policy violation, or unparseable SQL). reason is a
stable class the agent can use for one mechanical repair attempt.
ExecutionTimeout
ExtraNotInstalledError(extra: str, capability: str)
GapCooldownError
GapNotFoundError
GraphTierNotDeployedError()
Bases: SmrititantraError
graph.query / impact / lineage require the graph serving tier.
There is exactly one implementation of the graph surfaces (on the tier); without it they fail fast with this error and its remedy — recall, learning, and execution are unaffected.
LLMNotConfiguredError
Bases: SmrititantraError
An LLM-dependent pipeline was invoked without SMRITITANTRA_LLM_URL/_MODEL set.
LimitExceeded(message: str, *, retry_after: int | None = None)
MigrationError
NotFoundError
RecallDegradedError
ScopeError
Bases: SmrititantraError
The principal lacks rights for this resource or verb.
Deliberately 404-shaped for reads so callers cannot enumerate what exists beyond their clearance; write denials surface as 403 at the route layer.
SmrititantraError
Bases: Exception
Base class for every smrititantra error.
SnapshotError
SnapshotGateFailed
SnapshotUnavailableError
StoreError
StoreUnavailableError
ValidationFailed(message: str, errors: list[dict[str, str]] | None = None)
Bases: SmrititantraError
Content, manifest, or request payload failed validation.
errors carries structured findings: [{location, reason}].