Skip to main content

AuthenticationError

Thrown when authentication fails.

Extended by

  • GitAuthError

Constructors

Parameters
Returns
AuthenticationError

BuildError

Thrown when the build fails.

Extended by

  • FileUploadError

Constructors

Parameters
Returns
BuildError

FileNotFoundError

Thrown when a file or directory is not found inside a sandbox.

Constructors

Parameters
Returns
FileNotFoundError

Properties


FileUploadError

Thrown when the file upload fails.

Constructors

Parameters
Returns
FileUploadError

GitAuthError

Thrown when git authentication fails.

Deprecated

Run git with sandbox.commands.run() instead. The git module will be removed in the next major version.

Constructors

Parameters
Returns
GitAuthError

GitUpstreamError

Thrown when git upstream tracking is missing.

Deprecated

Run git with sandbox.commands.run() instead. The git module will be removed in the next major version.

Constructors

Parameters
Returns
GitUpstreamError

Properties


InvalidArgumentError

Thrown when an invalid argument is provided.

Constructors

Parameters
Returns
InvalidArgumentError

Properties


NotEnoughSpaceError

Thrown when there is not enough disk space.

Constructors

Parameters
Returns
NotEnoughSpaceError

Properties


NotFoundError

Thrown when a resource is not found.

Deprecated

Use FileNotFoundError or SandboxNotFoundError instead. This class will be removed in the next major version.

Extended by

  • FileNotFoundError
  • SandboxNotFoundError

Constructors

Parameters
Returns
NotFoundError

Properties


RateLimitError

Thrown when the API rate limit is exceeded.

Constructors

Parameters
Returns
RateLimitError

Properties


SandboxError

Base class for all sandbox errors. Thrown when general sandbox errors occur.

Extended by

  • TimeoutError
  • InvalidArgumentError
  • NotEnoughSpaceError
  • NotFoundError
  • GitUpstreamError
  • TemplateError
  • RateLimitError

Constructors

Parameters
Returns
SandboxError

Properties


SandboxNotFoundError

Thrown when a sandbox is not found (e.g. it doesn’t exist or is no longer running).

Constructors

Parameters
Returns
SandboxNotFoundError

Properties


SecretError

Base class for all secret errors. Thrown when general secret errors occur.

Extended by

  • SecretNotFoundError

Constructors

Parameters
Returns
SecretError

SecretNotFoundError

Thrown when a secret is not found.

Constructors

Parameters
Returns
SecretNotFoundError

ServiceBusyError

Thrown when the API refused the operation because the service is temporarily busy (HTTP 503): no capacity to place a sandbox right now, or the node running the sandbox declined a request it cannot serve yet. Nothing was changed by the refused call: for example a refused pause leaves the sandbox running with its state intact, so the same call can be retried after a short wait. Like AuthenticationError and unlike the other API errors, this is not a SandboxError: it is raised for every 503 whatever the operation, so catch it explicitly.

Constructors

Parameters
Returns
ServiceBusyError

Properties


TemplateError

Thrown when the template uses old envd version. It isn’t compatible with the new SDK.

Constructors

Parameters
Returns
TemplateError

Properties


TimeoutError

Thrown when a timeout error occurs. The [unavailable] error type is caused by sandbox timeout. The [canceled] error type is caused by exceeding request timeout. The [deadline_exceeded] error type is caused by exceeding the timeout for command execution, watch, etc. The [unknown] error type is sometimes caused by the sandbox timeout when the request is not processed correctly.

Constructors

Parameters
Returns
TimeoutError

Properties


VolumeError

Base class for all volume errors. Thrown when general volume errors occur.

Extended by

  • VolumeNotFoundError
  • VolumePathNotFoundError

Constructors

Parameters
Returns
VolumeError

VolumeNotFoundError

Thrown when a volume is not found.

Constructors

Parameters
Returns
VolumeNotFoundError

VolumePathNotFoundError

Thrown when a file or directory is not found inside a volume.

Constructors

Parameters
Returns
VolumePathNotFoundError

Functions

formatSandboxTimeoutError()

Parameters

Returns

TimeoutError