Errors
Typed errors by cause. Every API error carries a code, a message and the HTTP status.
Every method shows the same operation in each SDK; pick a language once and every tab on the site follows it.
ApiError
Section titled “ApiError”The API returned a structured error response.
Attributes: code: The server’s error code. May be a value outside ERROR_CODES if the deployment has added a new code; callers should not assume exhaustiveness. message: Human-readable server message. status_code: The HTTP status code of the response. request_id: Server-assigned request ID, when present, for support/correlation. details: Structured detail entries from the error response, if any. retryable: Server-provided retry hint in the v2 API, when present. retry_after_seconds: Minimum delay in the v2 API, when present.
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.
| Property | Type | Description |
|---|---|---|
api_message |
||
attempts |
||
code |
||
details |
||
header_retry_after |
||
request_id |
||
retry_after_seconds |
||
retryable |
||
status |
Not in the Java SDK.
constructor()
Section titled “constructor()”Not in the Python SDK’s ApiError.
constructor(code: string, serverMessage: string, statusCode: number, requestId?: string, details: ErrorDetail[] | Record<string, string> = [], retryable?: boolean, retryAfterSeconds?: number)| Parameter | Type | Default |
|---|---|---|
code |
string |
|
serverMessage |
string |
|
statusCode |
number |
|
requestId |
string |
optional |
details |
ErrorDetail[] | Record<string, string> |
[] |
retryable |
boolean |
optional |
retryAfterSeconds |
number |
optional |
sdk/typescript/src/errors.ts:55Not in the Go SDK.
Not in the Ruby SDK’s ApiError.
Not in the Java SDK.
detail()
Section titled “detail()”Not in the Python SDK’s ApiError.
Not in the TypeScript SDK’s ApiError.
Not in the Go SDK.
def self.detail(details, kind)A 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 ApiError.
Not in the TypeScript SDK’s ApiError.
Not in the Go SDK.
def self.for(code, message, status, request_id = nil, path: nil, **fields)The 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 ApiError.
Not in the TypeScript SDK’s ApiError.
Not in the Go SDK.
def initialize(code, message, status, request_id = nil, details: nil, retryable: nil, retry_after_seconds: nil)| 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.
AuthenticationError
Section titled “AuthenticationError”The credential is missing, wrong or expired (UNAUTHENTICATED).
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 AuthenticationError.
Not in the TypeScript SDK’s AuthenticationError.
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 AuthenticationError.
Not in the TypeScript SDK’s AuthenticationError.
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 AuthenticationError.
Not in the TypeScript SDK’s AuthenticationError.
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.
BillingBlockedError
Section titled “BillingBlockedError”The team’s free credit is spent or its spend limit reached (BILLING_BLOCKED); not retryable until billing changes.
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 BillingBlockedError.
Not in the TypeScript SDK’s BillingBlockedError.
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 BillingBlockedError.
Not in the TypeScript SDK’s BillingBlockedError.
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 BillingBlockedError.
Not in the TypeScript SDK’s BillingBlockedError.
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.
BuildError
Section titled “BuildError”A template build ended failed (the reference vendor’s BuildError): raised by Template.build(wait=True) (or with on_log) once the build is over. build_id and template_id name it, reason is the server’s, and the log is still readable with TemplateBuild(...).follow_logs.
Properties
Section titled “Properties”Python exposes these as methods; see below.
| Property | Type | Description |
|---|---|---|
buildId |
string |
|
reason |
string |
|
templateId |
string |
| Property | Type | Description |
|---|---|---|
BuildID |
string |
|
Reason |
string |
|
TemplateID |
string |
| Property | Type | Description |
|---|---|---|
build_id |
||
reason |
||
template_id |
Not in the Java SDK.
constructor()
Section titled “constructor()”Not in the Python SDK’s BuildError.
constructor(message: string, readonly buildId: string, readonly templateId: string, readonly reason?: string)| Parameter | Type | Default |
|---|---|---|
message |
string |
|
buildId |
string |
|
templateId |
string |
|
reason |
string |
optional |
sdk/typescript/src/errors.ts:138Not in the Go SDK’s BuildError.
Not in the Ruby SDK’s BuildError.
Not in the Java SDK.
error()
Section titled “error()”Not in the Python SDK’s BuildError.
Not in the TypeScript SDK’s BuildError.
func (e *BuildError) Error() stringReturns string
sdk/go/retry.go:308Not in the Ruby SDK’s BuildError.
Not in the Java SDK.
initialize()
Section titled “initialize()”Not in the Python SDK’s BuildError.
Not in the TypeScript SDK’s BuildError.
Not in the Go SDK’s BuildError.
def initialize(message, build_id:, template_id:, reason: nil)| Parameter | Type | Default |
|---|---|---|
message |
||
build_id |
||
template_id |
||
reason |
nil |
sdk/ruby/lib/svm/errors.rb:74Not in the Java SDK.
Not in the Python SDK’s BuildError.
Not in the TypeScript SDK’s BuildError.
func (e *BuildError) Is(target error) boolIs makes errors.Is(err, svm.ErrBuild) match.
| Parameter | Type | Default |
|---|---|---|
target |
error |
Returns bool
Raises ErrBuild
sdk/go/retry.go:316Not in the Ruby SDK’s BuildError.
Not in the Java SDK.
ConflictError
Section titled “ConflictError”The resource already exists or the idempotency key was used for another request (ALREADY_EXISTS, IDEMPOTENCY_CONFLICT).
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 ConflictError.
Not in the TypeScript SDK’s ConflictError.
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 ConflictError.
Not in the TypeScript SDK’s ConflictError.
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 ConflictError.
Not in the TypeScript SDK’s ConflictError.
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.
DataPlaneUnavailableError
Section titled “DataPlaneUnavailableError”A command, file or other data-plane call on a handle that has no data-plane access: the sandbox was killed (by this handle), paused, or the handle came from Sandbox.get. Raised by the SDK before any request; connect or resume gives access again unless the sandbox has ended. A SandboxError, and still a RuntimeError.
Properties
Section titled “Properties”Python exposes these as methods; see below.
TypeScript exposes these as methods; see below.
| Property | Type | Description |
|---|---|---|
Message |
string |
Ruby exposes these as methods; see below.
Not in the Java SDK.
constructor()
Section titled “constructor()”Not in the Python SDK’s DataPlaneUnavailableError.
constructor(message: string)| Parameter | Type | Default |
|---|---|---|
message |
string |
sdk/typescript/src/errors.ts:185Not in the Go SDK’s DataPlaneUnavailableError.
Not in the Ruby SDK’s DataPlaneUnavailableError.
Not in the Java SDK.
error()
Section titled “error()”Not in the Python SDK’s DataPlaneUnavailableError.
Not in the TypeScript SDK’s DataPlaneUnavailableError.
func (e *DataPlaneUnavailableError) Error() stringReturns string
sdk/go/process.go:73Not in the Ruby SDK’s DataPlaneUnavailableError.
Not in the Java SDK.
Not in the Python SDK’s DataPlaneUnavailableError.
Not in the TypeScript SDK’s DataPlaneUnavailableError.
func (e *DataPlaneUnavailableError) Is(target error) boolIs makes errors.Is(err, svm.ErrDataPlaneUnavailable) match.
| Parameter | Type | Default |
|---|---|---|
target |
error |
Returns bool
Raises ErrDataPlaneUnavailable
sdk/go/process.go:76Not in the Ruby SDK’s DataPlaneUnavailableError.
Not in the Java SDK.
DeadlineExceededError
Section titled “DeadlineExceededError”The server gave up waiting (DEADLINE_EXCEEDED).
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 DeadlineExceededError.
Not in the TypeScript SDK’s DeadlineExceededError.
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 DeadlineExceededError.
Not in the TypeScript SDK’s DeadlineExceededError.
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 DeadlineExceededError.
Not in the TypeScript SDK’s DeadlineExceededError.
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.
GuestUnresponsiveError
Section titled “GuestUnresponsiveError”The sandbox’s guest took the call and did not answer in time: the server answered GUEST_UNRESPONSIVE (503), for example on an exec or after a memory resume whose guest has not reconnected (the reference vendor’s GuestUnresponsiveError). Assigned from that code only. An UnavailableError (the status is 503), so except UnavailableError still catches it. The recovery after a resume is resume(on_resume="reboot"), which boots the sandbox from its disk instead of its memory snapshot.
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 GuestUnresponsiveError.
Not in the TypeScript SDK’s GuestUnresponsiveError.
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 GuestUnresponsiveError.
Not in the TypeScript SDK’s GuestUnresponsiveError.
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 GuestUnresponsiveError.
Not in the TypeScript SDK’s GuestUnresponsiveError.
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.
InternalError
Section titled “InternalError”The server failed (INTERNAL); the request may or may not have taken effect.
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 InternalError.
Not in the TypeScript SDK’s InternalError.
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 InternalError.
Not in the TypeScript SDK’s InternalError.
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 InternalError.
Not in the TypeScript SDK’s InternalError.
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.
InvalidArgumentError
Section titled “InvalidArgumentError”The request is malformed or out of bounds (INVALID_ARGUMENT).
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 InvalidArgumentError.
Not in the TypeScript SDK’s InvalidArgumentError.
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 InvalidArgumentError.
Not in the TypeScript SDK’s InvalidArgumentError.
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 InvalidArgumentError.
Not in the TypeScript SDK’s InvalidArgumentError.
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.
NotEnoughSpaceError
Section titled “NotEnoughSpaceError”The disk is full: a data-plane write refused with envd’s ERROR_CODE_DISK_FULL, or an API answer with HTTP 507 (the reference vendor’s NotEnoughSpaceError). A QuotaExceededError, so except QuotaExceededError 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 NotEnoughSpaceError.
Not in the TypeScript SDK’s NotEnoughSpaceError.
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 NotEnoughSpaceError.
Not in the TypeScript SDK’s NotEnoughSpaceError.
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 NotEnoughSpaceError.
Not in the TypeScript SDK’s NotEnoughSpaceError.
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 limitQuotaExceededErrorSource: sdk/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 maxQuotaExceededErrorSource: sdk/ruby/lib/svm/errors.rb:62Not in the Java SDK.
NotFoundError
Section titled “NotFoundError”The resource does not exist, or is not yours (NOT_FOUND).
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 NotFoundError.
Not in the TypeScript SDK’s NotFoundError.
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 NotFoundError.
Not in the TypeScript SDK’s NotFoundError.
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 NotFoundError.
Not in the TypeScript SDK’s NotFoundError.
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.
PermissionDeniedError
Section titled “PermissionDeniedError”The credential is valid but may not do this (PERMISSION_DENIED).
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 PermissionDeniedError.
Not in the TypeScript SDK’s PermissionDeniedError.
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 PermissionDeniedError.
Not in the TypeScript SDK’s PermissionDeniedError.
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 PermissionDeniedError.
Not in the TypeScript SDK’s PermissionDeniedError.
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.
RateLimitedError
Section titled “RateLimitedError”Too many requests; wait retry_after_seconds and try again (RATE_LIMITED).
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 RateLimitedError.
Not in the TypeScript SDK’s RateLimitedError.
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 RateLimitedError.
Not in the TypeScript SDK’s RateLimitedError.
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 RateLimitedError.
Not in the TypeScript SDK’s RateLimitedError.
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.
RequestTimeoutError
Section titled “RequestTimeoutError”No response arrived within the client’s timeout.
Properties
Section titled “Properties”Python exposes these as methods; see below.
TypeScript exposes these as methods; see below.
| Property | Type | Description |
|---|---|---|
Attempts |
int |
|
Err |
error |
|
URL |
string |
Ruby exposes these as methods; see below.
Not in the Java SDK.
constructor()
Section titled “constructor()”Not in the Python SDK’s RequestTimeoutError.
constructor(message: string, cause?: unknown)| Parameter | Type | Default |
|---|---|---|
message |
string |
|
cause |
unknown |
optional |
sdk/typescript/src/errors.ts:163Not in the Go SDK’s RequestTimeoutError.
Not in the Ruby SDK’s RequestTimeoutError.
Not in the Java SDK.
error()
Section titled “error()”Not in the Python SDK’s RequestTimeoutError.
Not in the TypeScript SDK’s RequestTimeoutError.
func (e *RequestTimeoutError) Error() stringReturns string
sdk/go/retry.go:137Not in the Ruby SDK’s RequestTimeoutError.
Not in the Java SDK.
Not in the Python SDK’s RequestTimeoutError.
Not in the TypeScript SDK’s RequestTimeoutError.
func (e *RequestTimeoutError) Is(target error) boolIs makes errors.Is(err, svm.ErrRequestTimeout) work.
| Parameter | Type | Default |
|---|---|---|
target |
error |
Returns bool
Raises ErrRequestTimeout
sdk/go/retry.go:322Not in the Ruby SDK’s RequestTimeoutError.
Not in the Java SDK.
unwrap()
Section titled “unwrap()”Not in the Python SDK’s RequestTimeoutError.
Not in the TypeScript SDK’s RequestTimeoutError.
func (e *RequestTimeoutError) Unwrap() errorReturns error
sdk/go/retry.go:140Not in the Ruby SDK’s RequestTimeoutError.
Not in the Java SDK.
SandboxError
Section titled “SandboxError”Base class for all errors raised by this package.
TimeoutError
Section titled “TimeoutError”the reference vendor’s TimeoutError: something did not finish in time on the client’s side. Raised for an HTTP request with no answer in time (as the RequestTimeoutError it already was) and by the waits: wait_until_running, a template build’s wait, a terminal’s wait_for, wait_until_ready on a desktop, a rollout’s wait. error_kind is timeout. It is a RequestTimeoutError (so a TransportError and SandboxError) and still the built-in TimeoutError that the waits raised, so every existing except keeps catching it. A server’s DEADLINE_EXCEEDED stays a DeadlineExceededError. Inside this package refer to it as errors.TimeoutError; a bare TimeoutError is the built-in.
Properties
Section titled “Properties”Python exposes these as methods; see below.
TypeScript exposes these as methods; see below.
| Property | Type | Description |
|---|---|---|
Message |
string |
Message says what was waited for; empty for a request, which reports its URL. |
Ruby exposes these as methods; see below.
Not in the Java SDK.
constructor()
Section titled “constructor()”Not in the Python SDK’s TimeoutError.
constructor(message: string, cause?: unknown)| Parameter | Type | Default |
|---|---|---|
message |
string |
|
cause |
unknown |
optional |
sdk/typescript/src/errors.ts:175Not in the Go SDK’s TimeoutError.
Not in the Ruby SDK’s TimeoutError.
Not in the Java SDK.
error()
Section titled “error()”Not in the Python SDK’s TimeoutError.
Not in the TypeScript SDK’s TimeoutError.
func (e *TimeoutError) Error() stringReturns string
sdk/go/retry.go:154Not in the Ruby SDK’s TimeoutError.
Not in the Java SDK.
Not in the Python SDK’s TimeoutError.
Not in the TypeScript SDK’s TimeoutError.
func (e *TimeoutError) Is(target error) boolIs makes errors.Is(err, svm.ErrTimeout) work.
| Parameter | Type | Default |
|---|---|---|
target |
error |
Returns bool
Raises ErrTimeout
sdk/go/retry.go:165Not in the Ruby SDK’s TimeoutError.
Not in the Java SDK.
unwrap()
Section titled “unwrap()”Not in the Python SDK’s TimeoutError.
Not in the TypeScript SDK’s TimeoutError.
func (e *TimeoutError) Unwrap() errorUnwrap gives the RequestTimeoutError, so a catch for it (errors.As, errors.Is(err, ErrRequestTimeout)) keeps catching.
Returns error
Raises ErrRequestTimeout, RequestTimeoutError
sdk/go/retry.go:162Not in the Ruby SDK’s TimeoutError.
Not in the Java SDK.
TransportError
Section titled “TransportError”The HTTP request could not be completed (DNS, connection, timeout, TLS).
Properties
Section titled “Properties”Python exposes these as methods; see below.
TypeScript exposes these as methods; see below.
| Property | Type | Description |
|---|---|---|
Attempts |
int |
|
Err |
error |
|
URL |
string |
| Property | Type | Description |
|---|---|---|
attempts |
Not in the Java SDK.
constructor()
Section titled “constructor()”Not in the Python SDK’s TransportError.
constructor(message: string, cause?: unknown)| Parameter | Type | Default |
|---|---|---|
message |
string |
|
cause |
unknown |
optional |
sdk/typescript/src/errors.ts:40Not in the Go SDK’s TransportError.
Not in the Ruby SDK’s TransportError.
Not in the Java SDK.
error()
Section titled “error()”Not in the Python SDK’s TransportError.
Not in the TypeScript SDK’s TransportError.
func (e *TransportError) Error() stringReturns string
sdk/go/retry.go:126Not in the Ruby SDK’s TransportError.
Not in the Java SDK.
Not in the Python SDK’s TransportError.
Not in the TypeScript SDK’s TransportError.
func (e *TransportError) Is(target error) boolIs makes errors.Is(err, svm.ErrTransport) work.
| Parameter | Type | Default |
|---|---|---|
target |
error |
Returns bool
Raises ErrTransport
sdk/go/retry.go:319Not in the Ruby SDK’s TransportError.
Not in the Java SDK.
unwrap()
Section titled “unwrap()”Not in the Python SDK’s TransportError.
Not in the TypeScript SDK’s TransportError.
func (e *TransportError) Unwrap() errorReturns error
sdk/go/retry.go:127Not in the Ruby SDK’s TransportError.
Not in the Java SDK.
UnavailableError
Section titled “UnavailableError”The service could not take the request now (UNAVAILABLE); 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 UnavailableError.
Not in the TypeScript SDK’s UnavailableError.
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 UnavailableError.
Not in the TypeScript SDK’s UnavailableError.
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 UnavailableError.
Not in the TypeScript SDK’s UnavailableError.
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.
WebhookSignatureError
Section titled “WebhookSignatureError”A callback whose signature does not verify: refuse it.