Other types
PreconditionError
Section titled “PreconditionError”The resource is in the wrong state for this call (FAILED_PRECONDITION, SANDBOX_NOT_RUNNING, SANDBOX_PAUSED, TEMPLATE_NOT_READY).
Properties
Section titled “Properties”Python exposes these as methods; see below.
| Property | Type | Description |
|---|---|---|
code |
string |
|
details |
ErrorDetail[] | Record<string, string> |
|
requestId |
string | undefined |
|
retryAfterSeconds |
number | undefined |
|
retryable |
boolean | undefined |
|
statusCode |
number |
Not in the Go SDK.
Ruby exposes these as methods; see below.
Not in the Java SDK.
detail()
Section titled “detail()”Not in the Python SDK’s PreconditionError.
Not in the TypeScript SDK’s PreconditionError.
Not in the Go SDK.
def self.detail(details, kind)ApiErrorA value from the details, whether they arrive as a list of {type, value} or as a mapping.
| Parameter | Type | Default |
|---|---|---|
details |
||
kind |
sdk/ruby/lib/svm/errors.rb:148Not in the Java SDK.
Not in the Python SDK’s PreconditionError.
Not in the TypeScript SDK’s PreconditionError.
Not in the Go SDK.
def self.for(code, message, status, request_id = nil, path: nil, **fields)ApiErrorThe most specific error class for a code. GUEST_UNRESPONSIVE, SANDBOX_UNREACHABLE and FILE_UPLOAD_FAILED name their classes from the code alone (never from the path). For NOT_FOUND the request’s path says what is missing (a sandbox, volume or secret); HTTP 507 is NotEnoughSpaceError; an unknown code stays a plain ApiError.
| Parameter | Type | Default |
|---|---|---|
code |
||
message |
||
status |
||
request_id |
nil |
|
path |
nil |
|
**fields |
optional |
Raises ApiError, NotEnoughSpaceError
sdk/ruby/lib/svm/errors.rb:137Not in the Java SDK.
initialize()
Section titled “initialize()”Not in the Python SDK’s PreconditionError.
Not in the TypeScript SDK’s PreconditionError.
Not in the Go SDK.
def initialize(code, message, status, request_id = nil, details: nil, retryable: nil, retry_after_seconds: nil)ApiError| Parameter | Type | Default |
|---|---|---|
code |
||
message |
||
status |
||
request_id |
nil |
|
details |
nil |
|
retryable |
nil |
|
retry_after_seconds |
nil |
sdk/ruby/lib/svm/errors.rb:11Not in the Java SDK.
QuotaExceededError
Section titled “QuotaExceededError”A plan limit would be exceeded (QUOTA_EXCEEDED, RESOURCE_EXHAUSTED). limit and max name it when the server says.
Properties
Section titled “Properties”Python exposes these as methods; see below.
| Property | Type | Description |
|---|---|---|
code |
string |
|
details |
ErrorDetail[] | Record<string, string> |
|
requestId |
string | undefined |
|
retryAfterSeconds |
number | undefined |
|
retryable |
boolean | undefined |
|
statusCode |
number |
Not in the Go SDK.
Ruby exposes these as methods; see below.
Not in the Java SDK.
detail()
Section titled “detail()”Not in the Python SDK’s QuotaExceededError.
Not in the TypeScript SDK’s QuotaExceededError.
Not in the Go SDK.
def self.detail(details, kind)ApiErrorA value from the details, whether they arrive as a list of {type, value} or as a mapping.
| Parameter | Type | Default |
|---|---|---|
details |
||
kind |
sdk/ruby/lib/svm/errors.rb:148Not in the Java SDK.
Not in the Python SDK’s QuotaExceededError.
Not in the TypeScript SDK’s QuotaExceededError.
Not in the Go SDK.
def self.for(code, message, status, request_id = nil, path: nil, **fields)ApiErrorThe most specific error class for a code. GUEST_UNRESPONSIVE, SANDBOX_UNREACHABLE and FILE_UPLOAD_FAILED name their classes from the code alone (never from the path). For NOT_FOUND the request’s path says what is missing (a sandbox, volume or secret); HTTP 507 is NotEnoughSpaceError; an unknown code stays a plain ApiError.
| Parameter | Type | Default |
|---|---|---|
code |
||
message |
||
status |
||
request_id |
nil |
|
path |
nil |
|
**fields |
optional |
Raises ApiError, NotEnoughSpaceError
sdk/ruby/lib/svm/errors.rb:137Not in the Java SDK.
initialize()
Section titled “initialize()”Not in the Python SDK’s QuotaExceededError.
Not in the TypeScript SDK’s QuotaExceededError.
Not in the Go SDK.
def initialize(code, message, status, request_id = nil, details: nil, retryable: nil, retry_after_seconds: nil)ApiError| Parameter | Type | Default |
|---|---|---|
code |
||
message |
||
status |
||
request_id |
nil |
|
details |
nil |
|
retryable |
nil |
|
retry_after_seconds |
nil |
sdk/ruby/lib/svm/errors.rb:11Not in the Java SDK.
limit()
Section titled “limit()”limit: str | NoneProperty (read-only).
limit: string | undefinedProperty (read-only).
Not in the Go SDK.
def limitsdk/ruby/lib/svm/errors.rb:61Not in the Java SDK.
max: str | NoneProperty (read-only).
max: string | undefinedProperty (read-only).
Not in the Go SDK.
def maxsdk/ruby/lib/svm/errors.rb:62Not in the Java SDK.
SandboxFileNotFoundError
Section titled “SandboxFileNotFoundError”A file or directory in a sandbox does not exist: a data-plane failure with envd’s ERROR_CODE_PATH_NOT_FOUND (the reference vendor’s FileNotFoundError; named so it does not shadow Python’s builtin). The same failure is a ProcessError and a NotFoundError.
SandboxNotFoundError
Section titled “SandboxNotFoundError”The sandbox does not exist, or is not yours: a 404 on /v2/sandboxes/{id} or on one of the actions whose 404 can only mean the sandbox is missing, such as /pause or /egress (the reference vendor’s SandboxNotFoundError). A NotFoundError, so except NotFoundError still catches it.
Properties
Section titled “Properties”Python exposes these as methods; see below.
| Property | Type | Description |
|---|---|---|
code |
string |
|
details |
ErrorDetail[] | Record<string, string> |
|
requestId |
string | undefined |
|
retryAfterSeconds |
number | undefined |
|
retryable |
boolean | undefined |
|
statusCode |
number |
Not in the Go SDK.
Ruby exposes these as methods; see below.
Not in the Java SDK.
detail()
Section titled “detail()”Not in the Python SDK’s SandboxNotFoundError.
Not in the TypeScript SDK’s SandboxNotFoundError.
Not in the Go SDK.
def self.detail(details, kind)ApiErrorA value from the details, whether they arrive as a list of {type, value} or as a mapping.
| Parameter | Type | Default |
|---|---|---|
details |
||
kind |
sdk/ruby/lib/svm/errors.rb:148Not in the Java SDK.
Not in the Python SDK’s SandboxNotFoundError.
Not in the TypeScript SDK’s SandboxNotFoundError.
Not in the Go SDK.
def self.for(code, message, status, request_id = nil, path: nil, **fields)ApiErrorThe most specific error class for a code. GUEST_UNRESPONSIVE, SANDBOX_UNREACHABLE and FILE_UPLOAD_FAILED name their classes from the code alone (never from the path). For NOT_FOUND the request’s path says what is missing (a sandbox, volume or secret); HTTP 507 is NotEnoughSpaceError; an unknown code stays a plain ApiError.
| Parameter | Type | Default |
|---|---|---|
code |
||
message |
||
status |
||
request_id |
nil |
|
path |
nil |
|
**fields |
optional |
Raises ApiError, NotEnoughSpaceError
sdk/ruby/lib/svm/errors.rb:137Not in the Java SDK.
initialize()
Section titled “initialize()”Not in the Python SDK’s SandboxNotFoundError.
Not in the TypeScript SDK’s SandboxNotFoundError.
Not in the Go SDK.
def initialize(code, message, status, request_id = nil, details: nil, retryable: nil, retry_after_seconds: nil)ApiError| Parameter | Type | Default |
|---|---|---|
code |
||
message |
||
status |
||
request_id |
nil |
|
details |
nil |
|
retryable |
nil |
|
retry_after_seconds |
nil |
sdk/ruby/lib/svm/errors.rb:11Not in the Java SDK.
SandboxNotRunningError
Section titled “SandboxNotRunningError”The sandbox is not running, so the call cannot proceed: the server answered SANDBOX_NOT_RUNNING (the reference vendor’s SandboxNotRunningError). A PreconditionError, so except PreconditionError still catches it. A paused sandbox (SANDBOX_PAUSED) stays a plain PreconditionError: resume or connect brings it back.
Properties
Section titled “Properties”Python exposes these as methods; see below.
| Property | Type | Description |
|---|---|---|
code |
string |
|
details |
ErrorDetail[] | Record<string, string> |
|
requestId |
string | undefined |
|
retryAfterSeconds |
number | undefined |
|
retryable |
boolean | undefined |
|
statusCode |
number |
Not in the Go SDK.
Ruby exposes these as methods; see below.
Not in the Java SDK.
detail()
Section titled “detail()”Not in the Python SDK’s SandboxNotRunningError.
Not in the TypeScript SDK’s SandboxNotRunningError.
Not in the Go SDK.
def self.detail(details, kind)ApiErrorA value from the details, whether they arrive as a list of {type, value} or as a mapping.
| Parameter | Type | Default |
|---|---|---|
details |
||
kind |
sdk/ruby/lib/svm/errors.rb:148Not in the Java SDK.
Not in the Python SDK’s SandboxNotRunningError.
Not in the TypeScript SDK’s SandboxNotRunningError.
Not in the Go SDK.
def self.for(code, message, status, request_id = nil, path: nil, **fields)ApiErrorThe most specific error class for a code. GUEST_UNRESPONSIVE, SANDBOX_UNREACHABLE and FILE_UPLOAD_FAILED name their classes from the code alone (never from the path). For NOT_FOUND the request’s path says what is missing (a sandbox, volume or secret); HTTP 507 is NotEnoughSpaceError; an unknown code stays a plain ApiError.
| Parameter | Type | Default |
|---|---|---|
code |
||
message |
||
status |
||
request_id |
nil |
|
path |
nil |
|
**fields |
optional |
Raises ApiError, NotEnoughSpaceError
sdk/ruby/lib/svm/errors.rb:137Not in the Java SDK.
initialize()
Section titled “initialize()”Not in the Python SDK’s SandboxNotRunningError.
Not in the TypeScript SDK’s SandboxNotRunningError.
Not in the Go SDK.
def initialize(code, message, status, request_id = nil, details: nil, retryable: nil, retry_after_seconds: nil)ApiError| Parameter | Type | Default |
|---|---|---|
code |
||
message |
||
status |
||
request_id |
nil |
|
details |
nil |
|
retryable |
nil |
|
retry_after_seconds |
nil |
sdk/ruby/lib/svm/errors.rb:11Not in the Java SDK.
SandboxUnreachableError
Section titled “SandboxUnreachableError”The sandbox could not be reached: the server answered SANDBOX_UNREACHABLE (503: the API could not reach the host the sandbox runs on), as opposed to the API itself being unavailable (the reference vendor’s SandboxUnreachableError). Assigned from that code only. An UnavailableError, so except UnavailableError still catches it, and still safe to retry.
Properties
Section titled “Properties”Python exposes these as methods; see below.
| Property | Type | Description |
|---|---|---|
code |
string |
|
details |
ErrorDetail[] | Record<string, string> |
|
requestId |
string | undefined |
|
retryAfterSeconds |
number | undefined |
|
retryable |
boolean | undefined |
|
statusCode |
number |
Not in the Go SDK.
Ruby exposes these as methods; see below.
Not in the Java SDK.
detail()
Section titled “detail()”Not in the Python SDK’s SandboxUnreachableError.
Not in the TypeScript SDK’s SandboxUnreachableError.
Not in the Go SDK.
def self.detail(details, kind)ApiErrorA value from the details, whether they arrive as a list of {type, value} or as a mapping.
| Parameter | Type | Default |
|---|---|---|
details |
||
kind |
sdk/ruby/lib/svm/errors.rb:148Not in the Java SDK.
Not in the Python SDK’s SandboxUnreachableError.
Not in the TypeScript SDK’s SandboxUnreachableError.
Not in the Go SDK.
def self.for(code, message, status, request_id = nil, path: nil, **fields)ApiErrorThe most specific error class for a code. GUEST_UNRESPONSIVE, SANDBOX_UNREACHABLE and FILE_UPLOAD_FAILED name their classes from the code alone (never from the path). For NOT_FOUND the request’s path says what is missing (a sandbox, volume or secret); HTTP 507 is NotEnoughSpaceError; an unknown code stays a plain ApiError.
| Parameter | Type | Default |
|---|---|---|
code |
||
message |
||
status |
||
request_id |
nil |
|
path |
nil |
|
**fields |
optional |
Raises ApiError, NotEnoughSpaceError
sdk/ruby/lib/svm/errors.rb:137Not in the Java SDK.
initialize()
Section titled “initialize()”Not in the Python SDK’s SandboxUnreachableError.
Not in the TypeScript SDK’s SandboxUnreachableError.
Not in the Go SDK.
def initialize(code, message, status, request_id = nil, details: nil, retryable: nil, retry_after_seconds: nil)ApiError| Parameter | Type | Default |
|---|---|---|
code |
||
message |
||
status |
||
request_id |
nil |
|
details |
nil |
|
retryable |
nil |
|
retry_after_seconds |
nil |
sdk/ruby/lib/svm/errors.rb:11Not in the Java SDK.
SecretNotFoundError
Section titled “SecretNotFoundError”The team has no secret of that name: a 404 on /v2/secrets/{name} (the reference vendor’s SecretNotFoundError).
Properties
Section titled “Properties”Python exposes these as methods; see below.
| Property | Type | Description |
|---|---|---|
code |
string |
|
details |
ErrorDetail[] | Record<string, string> |
|
requestId |
string | undefined |
|
retryAfterSeconds |
number | undefined |
|
retryable |
boolean | undefined |
|
statusCode |
number |
Not in the Go SDK.
Ruby exposes these as methods; see below.
Not in the Java SDK.
detail()
Section titled “detail()”Not in the Python SDK’s SecretNotFoundError.
Not in the TypeScript SDK’s SecretNotFoundError.
Not in the Go SDK.
def self.detail(details, kind)ApiErrorA value from the details, whether they arrive as a list of {type, value} or as a mapping.
| Parameter | Type | Default |
|---|---|---|
details |
||
kind |
sdk/ruby/lib/svm/errors.rb:148Not in the Java SDK.
Not in the Python SDK’s SecretNotFoundError.
Not in the TypeScript SDK’s SecretNotFoundError.
Not in the Go SDK.
def self.for(code, message, status, request_id = nil, path: nil, **fields)ApiErrorThe most specific error class for a code. GUEST_UNRESPONSIVE, SANDBOX_UNREACHABLE and FILE_UPLOAD_FAILED name their classes from the code alone (never from the path). For NOT_FOUND the request’s path says what is missing (a sandbox, volume or secret); HTTP 507 is NotEnoughSpaceError; an unknown code stays a plain ApiError.
| Parameter | Type | Default |
|---|---|---|
code |
||
message |
||
status |
||
request_id |
nil |
|
path |
nil |
|
**fields |
optional |
Raises ApiError, NotEnoughSpaceError
sdk/ruby/lib/svm/errors.rb:137Not in the Java SDK.
initialize()
Section titled “initialize()”Not in the Python SDK’s SecretNotFoundError.
Not in the TypeScript SDK’s SecretNotFoundError.
Not in the Go SDK.
def initialize(code, message, status, request_id = nil, details: nil, retryable: nil, retry_after_seconds: nil)ApiError| Parameter | Type | Default |
|---|---|---|
code |
||
message |
||
status |
||
request_id |
nil |
|
details |
nil |
|
retryable |
nil |
|
retry_after_seconds |
nil |
sdk/ruby/lib/svm/errors.rb:11Not in the Java SDK.
TeamSuspendedError
Section titled “TeamSuspendedError”An operator suspended the team (TEAM_SUSPENDED).
Properties
Section titled “Properties”Python exposes these as methods; see below.
| Property | Type | Description |
|---|---|---|
code |
string |
|
details |
ErrorDetail[] | Record<string, string> |
|
requestId |
string | undefined |
|
retryAfterSeconds |
number | undefined |
|
retryable |
boolean | undefined |
|
statusCode |
number |
Not in the Go SDK.
Ruby exposes these as methods; see below.
Not in the Java SDK.
detail()
Section titled “detail()”Not in the Python SDK’s TeamSuspendedError.
Not in the TypeScript SDK’s TeamSuspendedError.
Not in the Go SDK.
def self.detail(details, kind)ApiErrorA value from the details, whether they arrive as a list of {type, value} or as a mapping.
| Parameter | Type | Default |
|---|---|---|
details |
||
kind |
sdk/ruby/lib/svm/errors.rb:148Not in the Java SDK.
Not in the Python SDK’s TeamSuspendedError.
Not in the TypeScript SDK’s TeamSuspendedError.
Not in the Go SDK.
def self.for(code, message, status, request_id = nil, path: nil, **fields)ApiErrorThe most specific error class for a code. GUEST_UNRESPONSIVE, SANDBOX_UNREACHABLE and FILE_UPLOAD_FAILED name their classes from the code alone (never from the path). For NOT_FOUND the request’s path says what is missing (a sandbox, volume or secret); HTTP 507 is NotEnoughSpaceError; an unknown code stays a plain ApiError.
| Parameter | Type | Default |
|---|---|---|
code |
||
message |
||
status |
||
request_id |
nil |
|
path |
nil |
|
**fields |
optional |
Raises ApiError, NotEnoughSpaceError
sdk/ruby/lib/svm/errors.rb:137Not in the Java SDK.
initialize()
Section titled “initialize()”Not in the Python SDK’s TeamSuspendedError.
Not in the TypeScript SDK’s TeamSuspendedError.
Not in the Go SDK.
def initialize(code, message, status, request_id = nil, details: nil, retryable: nil, retry_after_seconds: nil)ApiError| Parameter | Type | Default |
|---|---|---|
code |
||
message |
||
status |
||
request_id |
nil |
|
details |
nil |
|
retryable |
nil |
|
retry_after_seconds |
nil |
sdk/ruby/lib/svm/errors.rb:11Not in the Java SDK.
TemplateError
Section titled “TemplateError”The template cannot be used as asked: the server answered TEMPLATE_NOT_READY, the template has no finished build (the reference vendor’s TemplateError). A PreconditionError. A build that ended failed is a BuildError.
Properties
Section titled “Properties”Python exposes these as methods; see below.
| Property | Type | Description |
|---|---|---|
code |
string |
|
details |
ErrorDetail[] | Record<string, string> |
|
requestId |
string | undefined |
|
retryAfterSeconds |
number | undefined |
|
retryable |
boolean | undefined |
|
statusCode |
number |
Not in the Go SDK.
Ruby exposes these as methods; see below.
Not in the Java SDK.
detail()
Section titled “detail()”Not in the Python SDK’s TemplateError.
Not in the TypeScript SDK’s TemplateError.
Not in the Go SDK.
def self.detail(details, kind)ApiErrorA value from the details, whether they arrive as a list of {type, value} or as a mapping.
| Parameter | Type | Default |
|---|---|---|
details |
||
kind |
sdk/ruby/lib/svm/errors.rb:148Not in the Java SDK.
Not in the Python SDK’s TemplateError.
Not in the TypeScript SDK’s TemplateError.
Not in the Go SDK.
def self.for(code, message, status, request_id = nil, path: nil, **fields)ApiErrorThe most specific error class for a code. GUEST_UNRESPONSIVE, SANDBOX_UNREACHABLE and FILE_UPLOAD_FAILED name their classes from the code alone (never from the path). For NOT_FOUND the request’s path says what is missing (a sandbox, volume or secret); HTTP 507 is NotEnoughSpaceError; an unknown code stays a plain ApiError.
| Parameter | Type | Default |
|---|---|---|
code |
||
message |
||
status |
||
request_id |
nil |
|
path |
nil |
|
**fields |
optional |
Raises ApiError, NotEnoughSpaceError
sdk/ruby/lib/svm/errors.rb:137Not in the Java SDK.
initialize()
Section titled “initialize()”Not in the Python SDK’s TemplateError.
Not in the TypeScript SDK’s TemplateError.
Not in the Go SDK.
def initialize(code, message, status, request_id = nil, details: nil, retryable: nil, retry_after_seconds: nil)ApiError| Parameter | Type | Default |
|---|---|---|
code |
||
message |
||
status |
||
request_id |
nil |
|
details |
nil |
|
retryable |
nil |
|
retry_after_seconds |
nil |
sdk/ruby/lib/svm/errors.rb:11Not in the Java SDK.
VolumeNotFoundError
Section titled “VolumeNotFoundError”The volume does not exist, or is not yours: a 404 on /v2/volumes/{id} (the reference vendor’s VolumeNotFoundError).
Properties
Section titled “Properties”Python exposes these as methods; see below.
| Property | Type | Description |
|---|---|---|
code |
string |
|
details |
ErrorDetail[] | Record<string, string> |
|
requestId |
string | undefined |
|
retryAfterSeconds |
number | undefined |
|
retryable |
boolean | undefined |
|
statusCode |
number |
Not in the Go SDK.
Ruby exposes these as methods; see below.
Not in the Java SDK.
detail()
Section titled “detail()”Not in the Python SDK’s VolumeNotFoundError.
Not in the TypeScript SDK’s VolumeNotFoundError.
Not in the Go SDK.
def self.detail(details, kind)ApiErrorA value from the details, whether they arrive as a list of {type, value} or as a mapping.
| Parameter | Type | Default |
|---|---|---|
details |
||
kind |
sdk/ruby/lib/svm/errors.rb:148Not in the Java SDK.
Not in the Python SDK’s VolumeNotFoundError.
Not in the TypeScript SDK’s VolumeNotFoundError.
Not in the Go SDK.
def self.for(code, message, status, request_id = nil, path: nil, **fields)ApiErrorThe most specific error class for a code. GUEST_UNRESPONSIVE, SANDBOX_UNREACHABLE and FILE_UPLOAD_FAILED name their classes from the code alone (never from the path). For NOT_FOUND the request’s path says what is missing (a sandbox, volume or secret); HTTP 507 is NotEnoughSpaceError; an unknown code stays a plain ApiError.
| Parameter | Type | Default |
|---|---|---|
code |
||
message |
||
status |
||
request_id |
nil |
|
path |
nil |
|
**fields |
optional |
Raises ApiError, NotEnoughSpaceError
sdk/ruby/lib/svm/errors.rb:137Not in the Java SDK.
initialize()
Section titled “initialize()”Not in the Python SDK’s VolumeNotFoundError.
Not in the TypeScript SDK’s VolumeNotFoundError.
Not in the Go SDK.
def initialize(code, message, status, request_id = nil, details: nil, retryable: nil, retry_after_seconds: nil)ApiError| Parameter | Type | Default |
|---|---|---|
code |
||
message |
||
status |
||
request_id |
nil |
|
details |
nil |
|
retryable |
nil |
|
retry_after_seconds |
nil |
sdk/ruby/lib/svm/errors.rb:11Not in the Java SDK.