Sources, batches, and errors
AmbiguousLocationError
candidates: tuple[str, ...] Several locations match the supplied name.
AuthenticationError
class AuthenticationError CWA rejected the authorization code.
BatchError
failures: Mapping[Hashable, CWAError]
completed: tuple[Hashable, ...] A batch failed. Inspect the failures and the completed keys.
BatchResult
successes: Mapping[K, V]
failures: Mapping[K, Failure]
complete: bool Successful items and failures from a batch.
CWAError
class CWAError Base class for SDK errors.
ClientClosedError
class ClientClosedError The client has been closed.
ConfigurationError
class ConfigurationError The client configuration is invalid.
DataValidationError
class DataValidationError The response could not be validated.
Failure
kind: type[CWAError]
message: str
status: int | None An item failure without request metadata or a traceback.
Failure.from_error
def from_error(error: CWAError) -> Failure Capture the SDK error’s diagnostic fields.
MissingDependencyError
class MissingDependencyError An optional integration was requested without its extra installed.
NotFoundError
class NotFoundError The requested record does not exist.
RateLimitError
class RateLimitError CWA throttled the request. Retry delay is expressed in seconds.
RequestTimeoutError
class RequestTimeoutError A network operation exceeded its timeout.
Source
dataset_id: str
retrieved_at: datetime
issued_at: datetime | None
updated_at: datetime | None
observed_at: datetime | None
stale: bool
partial: bool Dataset identity, retrieval time, and timestamps supplied by CWA.
TransportError
class TransportError A network request failed.
UnknownLocationError
class UnknownLocationError The supplied location could not be resolved.
UpstreamError
class UpstreamError CWA rejected the request or failed to serve it.