AuthenticationError

Thrown when authentication fails.

Constructors

new AuthenticationError(message: any): AuthenticationError
Parameters
ParameterType
messageany
Returns

AuthenticationError


InvalidArgumentError

Thrown when an invalid argument is provided.

Constructors

new InvalidArgumentError(message: string): InvalidArgumentError
Parameters
ParameterType
messagestring
Returns

InvalidArgumentError


NotEnoughSpaceError

Thrown when there is not enough disk space.

Constructors

new NotEnoughSpaceError(message: string): NotEnoughSpaceError
Parameters
ParameterType
messagestring
Returns

NotEnoughSpaceError


NotFoundError

Thrown when a resource is not found.

Constructors

new NotFoundError(message: string): NotFoundError
Parameters
ParameterType
messagestring
Returns

NotFoundError


RateLimitError

Thrown when the API rate limit is exceeded.

Constructors

new RateLimitError(message: any): RateLimitError
Parameters
ParameterType
messageany
Returns

RateLimitError


SandboxError

Base class for all sandbox errors.

Thrown when general sandbox errors occur.

Extended by

  • TimeoutError
  • InvalidArgumentError
  • NotEnoughSpaceError
  • NotFoundError
  • AuthenticationError
  • TemplateError
  • RateLimitError

Constructors

new SandboxError(message: any): SandboxError
Parameters
ParameterType
messageany
Returns

SandboxError


TemplateError

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

Constructors

new TemplateError(message: string): TemplateError
Parameters
ParameterType
messagestring
Returns

TemplateError


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

new TimeoutError(message: string): TimeoutError
Parameters
ParameterType
messagestring
Returns

TimeoutError

Functions

formatSandboxTimeoutError()

function formatSandboxTimeoutError(message: string): TimeoutError

Parameters

ParameterType
messagestring

Returns

TimeoutError