Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/e2b-dev/E2B into improved-a…
Browse files Browse the repository at this point in the history
…pi-refs
  • Loading branch information
0div committed Nov 27, 2024
2 parents 4161d41 + ff02ae9 commit 8fe82fa
Show file tree
Hide file tree
Showing 7 changed files with 1,919 additions and 7 deletions.
5 changes: 0 additions & 5 deletions .changeset/quiet-beers-live.md

This file was deleted.

8 changes: 8 additions & 0 deletions .github/workflows/publish_packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,16 @@ jobs:
name: Build and test SDK
runs-on: ubuntu-20.04
steps:
- uses: actions/create-github-app-token@v1
id: app-token
with:
app-id: ${{ vars.VERSION_BUMPER_APPID }}
private-key: ${{ secrets.VERSION_BUMPER_SECRET }}

- name: Checkout Repo
uses: actions/checkout@v3
with:
token: ${{ steps.app-token.outputs.token }}

- name: Set up Python
uses: actions/setup-python@v4
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@



## 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(SandboxException)
```

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.

Loading

0 comments on commit 8fe82fa

Please sign in to comment.