v0.7.2

Errors

All exception types in the Concave Sandbox SDK.

Exceptions

SandboxAuthenticationErrorException

Raised when API authentication fails (401, 403).

SandboxNotFoundErrorException

Raised when trying to operate on a non-existent sandbox (404).

SandboxRateLimitErrorException

Raised when hitting rate limits or concurrency limits (429). Includes limit and current attributes.

SandboxValidationErrorException

Raised when input validation fails (invalid parameters, empty code, etc.).

SandboxInternalErrorException

Raised when sandbox service has internal errors (500). Not retryable.

SandboxUnavailableErrorException

Raised when sandbox service is unavailable (502, 503). Retryable - includes retryable attribute.

SandboxConnectionErrorException

Raised when unable to connect to the sandbox service.

SandboxTimeoutErrorException

Raised when a request or operation times out. Includes timeout_ms and operation attributes.

SandboxCreationErrorException

Raised when sandbox creation fails.

SandboxExecutionErrorException

Raised when command or code execution fails.

SandboxInvalidResponseErrorException

Raised when API returns unexpected or malformed response.

SandboxFileNotFoundErrorException

Raised when a file is not found (local or remote). Includes path and is_local attributes.

SandboxFileExistsErrorException

Raised when trying to create or write a file that already exists (409). Includes path attribute.

SandboxFileLockedErrorException

Raised when a file is locked and cannot be accessed (423). Includes path attribute.

SandboxFileBusyErrorException

Raised when a file is busy and cannot be accessed (423 with FILE_BUSY code). Includes path attribute.

SandboxInsufficientStorageErrorException

Raised when there is insufficient storage space for file operations (507). Includes path attribute.

SandboxPermissionDeniedErrorException

Raised when file operation is denied due to permissions (403). Includes path attribute.

SandboxUnsupportedMediaTypeErrorException

Raised when file type is not supported (415). Includes detail attribute with additional information.

SandboxChecksumMismatchErrorException

Raised when file checksum verification fails. Includes path, expected, actual, algorithm, and direction attributes.

Base Exceptions

These base exception classes can be used for broader exception handling. All specific exceptions inherit from these base classes.

SandboxErrorBase Exception

Base exception for all sandbox operations. Catch this to handle any sandbox-related error.

SandboxClientErrorBase Exception

Base exception for client-side errors (4xx HTTP status codes). Indicates issues with the request.

SandboxServerErrorBase Exception

Base exception for server-side errors (5xx HTTP status codes). Includes status_code and retryable attributes.

SandboxNetworkErrorBase Exception

Base exception for network-related errors (connection failures, timeouts).

SandboxFileErrorBase Exception

Base exception for file operation failures. Catch this to handle any file-related error.