Errors
All exception types in the Concave Sandbox SDK.
Exceptions
SandboxAuthenticationErrorExceptionRaised when API authentication fails (401, 403).
SandboxNotFoundErrorExceptionRaised when trying to operate on a non-existent sandbox (404).
SandboxRateLimitErrorExceptionRaised when hitting rate limits or concurrency limits (429). Includes limit and current attributes.
SandboxValidationErrorExceptionRaised when input validation fails (invalid parameters, empty code, etc.).
SandboxInternalErrorExceptionRaised when sandbox service has internal errors (500). Not retryable.
SandboxUnavailableErrorExceptionRaised when sandbox service is unavailable (502, 503). Retryable - includes retryable attribute.
SandboxConnectionErrorExceptionRaised when unable to connect to the sandbox service.
SandboxTimeoutErrorExceptionRaised when a request or operation times out. Includes timeout_ms and operation attributes.
SandboxCreationErrorExceptionRaised when sandbox creation fails.
SandboxExecutionErrorExceptionRaised when command or code execution fails.
SandboxInvalidResponseErrorExceptionRaised when API returns unexpected or malformed response.
SandboxFileNotFoundErrorExceptionRaised when a file is not found (local or remote). Includes path and is_local attributes.
SandboxFileExistsErrorExceptionRaised when trying to create or write a file that already exists (409). Includes path attribute.
SandboxFileLockedErrorExceptionRaised when a file is locked and cannot be accessed (423). Includes path attribute.
SandboxFileBusyErrorExceptionRaised when a file is busy and cannot be accessed (423 with FILE_BUSY code). Includes path attribute.
SandboxInsufficientStorageErrorExceptionRaised when there is insufficient storage space for file operations (507). Includes path attribute.
SandboxPermissionDeniedErrorExceptionRaised when file operation is denied due to permissions (403). Includes path attribute.
SandboxUnsupportedMediaTypeErrorExceptionRaised when file type is not supported (415). Includes detail attribute with additional information.
SandboxChecksumMismatchErrorExceptionRaised 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 ExceptionBase exception for all sandbox operations. Catch this to handle any sandbox-related error.
SandboxClientErrorBase ExceptionBase exception for client-side errors (4xx HTTP status codes). Indicates issues with the request.
SandboxServerErrorBase ExceptionBase exception for server-side errors (5xx HTTP status codes). Includes status_code and retryable attributes.
SandboxNetworkErrorBase ExceptionBase exception for network-related errors (connection failures, timeouts).
SandboxFileErrorBase ExceptionBase exception for file operation failures. Catch this to handle any file-related error.