-
Notifications
You must be signed in to change notification settings - Fork 486
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into updated-templates-view
- Loading branch information
Showing
27 changed files
with
8,186 additions
and
339 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
84 changes: 84 additions & 0 deletions
84
apps/web/src/app/(docs)/docs/sdk-reference/python-sdk/v1.0.5/exceptions/page.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. | ||
|
Oops, something went wrong.