> ## Documentation Index
> Fetch the complete documentation index at: https://docs.pipecat.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Exceptions

> Error types for job coordination

## JobError

```python theme={null}
from pipecat.pipeline.job_context import JobError
```

Raised when a single-agent job (via [`JobContext`](/api-reference/server/workers/types#jobcontext)) is cancelled due to a worker error or timeout.

```python theme={null}
try:
    async with self.job("worker", payload=data, timeout=30) as j:
        async for event in j:
            ...
    print(j.response)
except JobError as e:
    print(f"Job failed: {e}")
```

## JobGroupError

```python theme={null}
from pipecat.pipeline.job_context import JobGroupError
```

Raised when a job group (via [`JobGroupContext`](/api-reference/server/workers/types#jobgroupcontext)) is cancelled due to a worker error or timeout. Also raised if agents are not ready within the specified timeout.

```python theme={null}
try:
    async with self.job_group("w1", "w2", payload=data, timeout=30) as jg:
        async for event in jg:
            ...
    print(jg.responses)
except JobGroupError as e:
    print(f"Job group failed: {e}")
```
