Skip to content

Errors

Bases: Exception

Base class for all SDK errors. Catch this to handle any SDK failure.

Bases: AthenaSDKError

Raised when AthenaClient cannot be constructed (bad URL, missing token).

Bases: AthenaSDKError

Raised by node helpers when a configuration is invalid at build time (before any network call). Subclass of :class:AthenaSDKError so a catch-all except AthenaSDKError still works.

Message shape: "Node 'name' [node_type]: <reason>". The node name and type come from the helper call site and make multi-node workflows readable in tracebacks.

Bases: AthenaSDKError

Raised when the Nexus API returns a non-2xx or a malformed body.

Bases: RemoteAPIError

Raised when the backend returns HTTP 422 with an HTTPValidationError body (FastAPI's request-validation failure shape).

Attributes:

Name Type Description
op

Short label of the failed call site (e.g. "workflows.create").

errors

The decoded detail[] from the 422 body. Each entry has {loc, msg, type, ...} as FastAPI emits it.