# Sources, batches, and errors (https://nolantw.github.io/cwa/en/reference/results/)

## `AmbiguousLocationError`

```python
candidates: tuple[str, ...]
```

Several locations match the supplied name.

## `AuthenticationError`

```python
class AuthenticationError
```

CWA rejected the authorization code.

## `BatchError`

```python
failures: Mapping[Hashable, CWAError]
completed: tuple[Hashable, ...]
```

A batch failed. Inspect the failures and the completed keys.

## `BatchResult`

```python
successes: Mapping[K, V]
failures: Mapping[K, Failure]
complete: bool
```

Successful items and failures from a batch.

## `CWAError`

```python
class CWAError
```

Base class for SDK errors.

## `ClientClosedError`

```python
class ClientClosedError
```

The client has been closed.

## `ConfigurationError`

```python
class ConfigurationError
```

The client configuration is invalid.

## `DataValidationError`

```python
class DataValidationError
```

The response could not be validated.

## `Failure`

```python
kind: type[CWAError]
message: str
status: int | None
```

An item failure without request metadata or a traceback.

### `Failure.from_error`

```python
def from_error(error: CWAError) -> Failure
```

Capture the SDK error's diagnostic fields.

## `MissingDependencyError`

```python
class MissingDependencyError
```

An optional integration was requested without its extra installed.

## `NotFoundError`

```python
class NotFoundError
```

The requested record does not exist.

## `RateLimitError`

```python
class RateLimitError
```

CWA throttled the request. Retry delay is expressed in seconds.

## `RequestTimeoutError`

```python
class RequestTimeoutError
```

A network operation exceeded its timeout.

## `Source`

```python
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`

```python
class TransportError
```

A network request failed.

## `UnknownLocationError`

```python
class UnknownLocationError
```

The supplied location could not be resolved.

## `UpstreamError`

```python
class UpstreamError
```

CWA rejected the request or failed to serve it.