> ## Documentation Index
> Fetch the complete documentation index at: https://e2b.manicule.dev/sdk-python-v2.1.0/llms.txt
> Use this file to discover all available pages before exploring further.
> For every page in one file, fetch https://e2b.manicule.dev/sdk-python-v2.1.0/llms-full.txt (large).
> To search and read these docs as tools, connect the MCP server at https://e2b.manicule.dev/api/mcp.
> Every agent surface: https://e2b.manicule.dev/.well-known/llms-manifest.json

# Exceptions (/sdk-python-v2.1.0/exceptions)

<!-- agent-signals: reading_time_min: 1 · est_tokens: 357 · updated: 2026-07-30 -->
Related: [Sandbox Async](/sdk-python-v2.1.0/sandbox_async.md), [Sandbox Sync](/sdk-python-v2.1.0/sandbox_sync.md), [Supported languages](/docs/code-interpreting/supported-languages.md)

## SandboxException

```python
class SandboxException(Exception)
```

Base class for all sandbox errors.

Raised when a general sandbox exception occurs.

## TimeoutException

```python
class TimeoutException(SandboxException)
```

Raised when a timeout occurs.

The `unavailable` exception type is caused by sandbox timeout.

The `canceled` exception type is caused by exceeding request timeout.

The `deadline_exceeded` exception type is caused by exceeding the timeout for process, watch, etc.

The `unknown` exception type is sometimes caused by the sandbox timeout when the request is not processed correctly.

## InvalidArgumentException

```python
class InvalidArgumentException(SandboxException)
```

Raised when an invalid argument is provided.

## NotEnoughSpaceException

```python
class NotEnoughSpaceException(SandboxException)
```

Raised when there is not enough disk space.

## NotFoundException

```python
class NotFoundException(SandboxException)
```

Raised when a resource is not found.

## AuthenticationException

```python
class AuthenticationException(Exception)
```

Raised when authentication fails.

## TemplateException

```python
class TemplateException(SandboxException)
```

Exception raised when the template uses old envd version. It isn't compatible with the new SDK.

## RateLimitException

```python
class RateLimitException(SandboxException)
```

Raised when the API rate limit is exceeded.
