> ## Documentation Index
> Fetch the complete documentation index at: https://e2b-mintlify-f20480e6.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Exceptions

## SandboxException

```python theme={null}
class SandboxException(Exception)
```

Base class for all sandbox errors.

Raised when a general sandbox exception occurs.

## TimeoutException

```python theme={null}
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 theme={null}
class InvalidArgumentException(SandboxException)
```

Raised when an invalid argument is provided.

## NotEnoughSpaceException

```python theme={null}
class NotEnoughSpaceException(SandboxException)
```

Raised when there is not enough disk space.

## NotFoundException

```python theme={null}
class NotFoundException(SandboxException)
```

Raised when a resource is not found.

## AuthenticationException

```python theme={null}
class AuthenticationException(SandboxException)
```

Raised when authentication fails.

## TemplateException

```python theme={null}
class TemplateException(SandboxException)
```

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