Sign Up

DaytonaA11yUnavailableError

The accessibility service is unavailable (code A11Y_UNAVAILABLE).

Properties:

  • code? string
    • Inherited from: DaytonaServiceUnavailableError.code
  • headers? AxiosHeaders
    • Inherited from: DaytonaServiceUnavailableError.headers
  • source? string
    • Inherited from: DaytonaServiceUnavailableError.source
  • statusCode? number
    • Inherited from: DaytonaServiceUnavailableError.statusCode

Extends:

  • DaytonaServiceUnavailableError

Accessors

errorCode

Inherited from: DaytonaServiceUnavailableError.errorCode

Get Signature
get errorCode(): string;
Deprecated

Use DaytonaError.code instead. Kept so existing err.errorCode reads keep returning the machine-readable code.

Returns:

  • string - the machine-readable error code, or undefined when the response did not carry one (same as DaytonaError.code)

Constructors

Constructor

new DaytonaA11yUnavailableError(
   message: string, 
   statusCode?: number, 
   headers?: AxiosHeaders, 
   code?: string, 
   source?: string
): DaytonaA11yUnavailableError;

Parameters:

  • message string
  • statusCode? number
  • headers? AxiosHeaders
  • code? string
  • source? string

Returns:

  • DaytonaA11yUnavailableError
Inherited from

DaytonaServiceUnavailableError.constructor

DaytonaAuthenticationError

Authentication failed — missing or invalid credentials (HTTP 401).

Properties:

  • code? string
    • Inherited from: DaytonaError.code
  • headers? AxiosHeaders
    • Inherited from: DaytonaError.headers
  • source? string
    • Inherited from: DaytonaError.source
  • statusCode? number
    • Inherited from: DaytonaError.statusCode

Extends:

  • DaytonaError

Extended by

  • DaytonaGitAuthFailedError

Accessors

errorCode

Inherited from: DaytonaError.errorCode

Get Signature
get errorCode(): string;
Deprecated

Use DaytonaError.code instead. Kept so existing err.errorCode reads keep returning the machine-readable code.

Returns:

  • string - the machine-readable error code, or undefined when the response did not carry one (same as DaytonaError.code)

Constructors

Constructor

new DaytonaAuthenticationError(
   message: string, 
   statusCode?: number, 
   headers?: AxiosHeaders, 
   code?: string, 
   source?: string
): DaytonaAuthenticationError;

Parameters:

  • message string
  • statusCode? number
  • headers? AxiosHeaders
  • code? string
  • source? string

Returns:

  • DaytonaAuthenticationError
Inherited from

DaytonaError.constructor

DaytonaAuthorizationError

Deprecated

Properties:

  • code? string
    • Inherited from: DaytonaForbiddenError.code
  • headers? AxiosHeaders
    • Inherited from: DaytonaForbiddenError.headers
  • source? string
    • Inherited from: DaytonaForbiddenError.source
  • statusCode? number
    • Inherited from: DaytonaForbiddenError.statusCode

Use DaytonaForbiddenError instead.

Extends:

  • DaytonaForbiddenError

Accessors

errorCode

Inherited from: DaytonaForbiddenError.errorCode

Get Signature
get errorCode(): string;
Deprecated

Use DaytonaError.code instead. Kept so existing err.errorCode reads keep returning the machine-readable code.

Returns:

  • string - the machine-readable error code, or undefined when the response did not carry one (same as DaytonaError.code)

Constructors

Constructor

new DaytonaAuthorizationError(
   message: string, 
   statusCode?: number, 
   headers?: AxiosHeaders, 
   code?: string, 
   source?: string
): DaytonaAuthorizationError;

Parameters:

  • message string
  • statusCode? number
  • headers? AxiosHeaders
  • code? string
  • source? string

Returns:

  • DaytonaAuthorizationError
Inherited from

DaytonaForbiddenError.constructor

DaytonaBadGatewayError

An upstream gateway returned an invalid response (HTTP 502).

Properties:

  • code? string
    • Inherited from: DaytonaError.code
  • headers? AxiosHeaders
    • Inherited from: DaytonaError.headers
  • source? string
    • Inherited from: DaytonaError.source
  • statusCode? number
    • Inherited from: DaytonaError.statusCode

Extends:

  • DaytonaError

Extended by

  • DaytonaGitTransportFailedError

Accessors

errorCode

Inherited from: DaytonaError.errorCode

Get Signature
get errorCode(): string;
Deprecated

Use DaytonaError.code instead. Kept so existing err.errorCode reads keep returning the machine-readable code.

Returns:

  • string - the machine-readable error code, or undefined when the response did not carry one (same as DaytonaError.code)

Constructors

Constructor

new DaytonaBadGatewayError(
   message: string, 
   statusCode?: number, 
   headers?: AxiosHeaders, 
   code?: string, 
   source?: string
): DaytonaBadGatewayError;

Parameters:

  • message string
  • statusCode? number
  • headers? AxiosHeaders
  • code? string
  • source? string

Returns:

  • DaytonaBadGatewayError
Inherited from

DaytonaError.constructor

DaytonaBadRequestError

The request was malformed or invalid (HTTP 400).

Properties:

  • code? string
    • Inherited from: DaytonaError.code
  • headers? AxiosHeaders
    • Inherited from: DaytonaError.headers
  • source? string
    • Inherited from: DaytonaError.source
  • statusCode? number
    • Inherited from: DaytonaError.statusCode

Extends:

  • DaytonaError

Extended by

  • DaytonaValidationError
  • DaytonaInvalidFilePathError
  • DaytonaLspServerNotInitializedError

Accessors

errorCode

Inherited from: DaytonaError.errorCode

Get Signature
get errorCode(): string;
Deprecated

Use DaytonaError.code instead. Kept so existing err.errorCode reads keep returning the machine-readable code.

Returns:

  • string - the machine-readable error code, or undefined when the response did not carry one (same as DaytonaError.code)

Constructors

Constructor

new DaytonaBadRequestError(
   message: string, 
   statusCode?: number, 
   headers?: AxiosHeaders, 
   code?: string, 
   source?: string
): DaytonaBadRequestError;

Parameters:

  • message string
  • statusCode? number
  • headers? AxiosHeaders
  • code? string
  • source? string

Returns:

  • DaytonaBadRequestError
Inherited from

DaytonaError.constructor

DaytonaCommandAlreadyCompletedError

The session command already finished (code COMMAND_ALREADY_COMPLETED).

Properties:

  • code? string
    • Inherited from: DaytonaGoneError.code
  • headers? AxiosHeaders
    • Inherited from: DaytonaGoneError.headers
  • source? string
    • Inherited from: DaytonaGoneError.source
  • statusCode? number
    • Inherited from: DaytonaGoneError.statusCode

Extends:

  • DaytonaGoneError

Accessors

errorCode

Inherited from: DaytonaGoneError.errorCode

Get Signature
get errorCode(): string;
Deprecated

Use DaytonaError.code instead. Kept so existing err.errorCode reads keep returning the machine-readable code.

Returns:

  • string - the machine-readable error code, or undefined when the response did not carry one (same as DaytonaError.code)

Constructors

Constructor

new DaytonaCommandAlreadyCompletedError(
   message: string, 
   statusCode?: number, 
   headers?: AxiosHeaders, 
   code?: string, 
   source?: string
): DaytonaCommandAlreadyCompletedError;

Parameters:

  • message string
  • statusCode? number
  • headers? AxiosHeaders
  • code? string
  • source? string

Returns:

  • DaytonaCommandAlreadyCompletedError
Inherited from

DaytonaGoneError.constructor

DaytonaConflictError

The request conflicts with the current state of the resource (HTTP 409).

Properties:

  • code? string
    • Inherited from: DaytonaError.code
  • headers? AxiosHeaders
    • Inherited from: DaytonaError.headers
  • source? string
    • Inherited from: DaytonaError.source
  • statusCode? number
    • Inherited from: DaytonaError.statusCode

Extends:

  • DaytonaError

Extended by

  • DaytonaGitBranchExistsError
  • DaytonaGitPushRejectedError
  • DaytonaGitDirtyWorktreeError
  • DaytonaGitMergeConflictError
  • DaytonaRecordingStillActiveError

Accessors

errorCode

Inherited from: DaytonaError.errorCode

Get Signature
get errorCode(): string;
Deprecated

Use DaytonaError.code instead. Kept so existing err.errorCode reads keep returning the machine-readable code.

Returns:

  • string - the machine-readable error code, or undefined when the response did not carry one (same as DaytonaError.code)

Constructors

Constructor

new DaytonaConflictError(
   message: string, 
   statusCode?: number, 
   headers?: AxiosHeaders, 
   code?: string, 
   source?: string
): DaytonaConflictError;

Parameters:

  • message string
  • statusCode? number
  • headers? AxiosHeaders
  • code? string
  • source? string

Returns:

  • DaytonaConflictError
Inherited from

DaytonaError.constructor

DaytonaConnectionError

Network connection failure (can't connect or mid-request drop).

Properties:

  • code? string
    • Inherited from: DaytonaError.code
  • headers? AxiosHeaders
    • Inherited from: DaytonaError.headers
  • source? string
    • Inherited from: DaytonaError.source
  • statusCode? number
    • Inherited from: DaytonaError.statusCode

Extends:

  • DaytonaError

Extended by

  • DaytonaConnectionTimeoutError

Accessors

errorCode

Inherited from: DaytonaError.errorCode

Get Signature
get errorCode(): string;
Deprecated

Use DaytonaError.code instead. Kept so existing err.errorCode reads keep returning the machine-readable code.

Returns:

  • string - the machine-readable error code, or undefined when the response did not carry one (same as DaytonaError.code)

Constructors

Constructor

new DaytonaConnectionError(
   message: string, 
   statusCode?: number, 
   headers?: AxiosHeaders, 
   code?: string, 
   source?: string
): DaytonaConnectionError;

Parameters:

  • message string
  • statusCode? number
  • headers? AxiosHeaders
  • code? string
  • source? string

Returns:

  • DaytonaConnectionError
Inherited from

DaytonaError.constructor

DaytonaConnectionTimeoutError

Transport-layer timeout (connect / read). Subclass of DaytonaConnectionError.

Properties:

  • code? string
    • Inherited from: DaytonaConnectionError.code
  • headers? AxiosHeaders
    • Inherited from: DaytonaConnectionError.headers
  • source? string
    • Inherited from: DaytonaConnectionError.source
  • statusCode? number
    • Inherited from: DaytonaConnectionError.statusCode

Extends:

  • DaytonaConnectionError

Accessors

errorCode

Inherited from: DaytonaConnectionError.errorCode

Get Signature
get errorCode(): string;
Deprecated

Use DaytonaError.code instead. Kept so existing err.errorCode reads keep returning the machine-readable code.

Returns:

  • string - the machine-readable error code, or undefined when the response did not carry one (same as DaytonaError.code)

Constructors

Constructor

new DaytonaConnectionTimeoutError(
   message: string, 
   statusCode?: number, 
   headers?: AxiosHeaders, 
   code?: string, 
   source?: string
): DaytonaConnectionTimeoutError;

Parameters:

  • message string
  • statusCode? number
  • headers? AxiosHeaders
  • code? string
  • source? string

Returns:

  • DaytonaConnectionTimeoutError
Inherited from

DaytonaConnectionError.constructor

DaytonaError

Base error for Daytona SDK. statusCode and code are populated only for errors translated from a server response. source is undefined unless the caller (or the translation layer) sets it.

Properties:

  • code? string
  • headers? AxiosHeaders
  • source? string
  • statusCode? number

Extends:

  • Error

Extended by

  • DaytonaBadRequestError
  • DaytonaAuthenticationError
  • DaytonaForbiddenError
  • DaytonaNotFoundError
  • DaytonaTimeoutError
  • DaytonaConflictError
  • DaytonaGoneError
  • DaytonaUnprocessableEntityError
  • DaytonaRateLimitError
  • DaytonaInternalServerError
  • DaytonaBadGatewayError
  • DaytonaServiceUnavailableError
  • DaytonaConnectionError
  • DaytonaSpotEvictedError

Accessors

errorCode

Get Signature
get errorCode(): string;
Deprecated

Use DaytonaError.code instead. Kept so existing err.errorCode reads keep returning the machine-readable code.

Returns:

  • string - the machine-readable error code, or undefined when the response did not carry one (same as DaytonaError.code)

Constructors

Constructor

new DaytonaError(
   message: string, 
   statusCode?: number, 
   headers?: AxiosHeaders, 
   code?: string, 
   source?: string
): DaytonaError;

Parameters:

  • message string
  • statusCode? number
  • headers? AxiosHeaders
  • code? string
  • source? string

Returns:

  • DaytonaError
Overrides
Error.constructor

DaytonaFileAccessDeniedError

Access to the sandbox file was denied (code FILE_ACCESS_DENIED).

Properties:

  • code? string
    • Inherited from: DaytonaForbiddenError.code
  • headers? AxiosHeaders
    • Inherited from: DaytonaForbiddenError.headers
  • source? string
    • Inherited from: DaytonaForbiddenError.source
  • statusCode? number
    • Inherited from: DaytonaForbiddenError.statusCode

Extends:

  • DaytonaForbiddenError

Accessors

errorCode

Inherited from: DaytonaForbiddenError.errorCode

Get Signature
get errorCode(): string;
Deprecated

Use DaytonaError.code instead. Kept so existing err.errorCode reads keep returning the machine-readable code.

Returns:

  • string - the machine-readable error code, or undefined when the response did not carry one (same as DaytonaError.code)

Constructors

Constructor

new DaytonaFileAccessDeniedError(
   message: string, 
   statusCode?: number, 
   headers?: AxiosHeaders, 
   code?: string, 
   source?: string
): DaytonaFileAccessDeniedError;

Parameters:

  • message string
  • statusCode? number
  • headers? AxiosHeaders
  • code? string
  • source? string

Returns:

  • DaytonaFileAccessDeniedError
Inherited from

DaytonaForbiddenError.constructor

DaytonaFileNotFoundError

The file does not exist in the sandbox (code FILE_NOT_FOUND).

Properties:

  • code? string
    • Inherited from: DaytonaNotFoundError.code
  • headers? AxiosHeaders
    • Inherited from: DaytonaNotFoundError.headers
  • source? string
    • Inherited from: DaytonaNotFoundError.source
  • statusCode? number
    • Inherited from: DaytonaNotFoundError.statusCode

Extends:

  • DaytonaNotFoundError

Accessors

errorCode

Inherited from: DaytonaNotFoundError.errorCode

Get Signature
get errorCode(): string;
Deprecated

Use DaytonaError.code instead. Kept so existing err.errorCode reads keep returning the machine-readable code.

Returns:

  • string - the machine-readable error code, or undefined when the response did not carry one (same as DaytonaError.code)

Constructors

Constructor

new DaytonaFileNotFoundError(
   message: string, 
   statusCode?: number, 
   headers?: AxiosHeaders, 
   code?: string, 
   source?: string
): DaytonaFileNotFoundError;

Parameters:

  • message string
  • statusCode? number
  • headers? AxiosHeaders
  • code? string
  • source? string

Returns:

  • DaytonaFileNotFoundError
Inherited from

DaytonaNotFoundError.constructor

DaytonaFileReadFailedError

The daemon could not read the sandbox file (code FILE_READ_FAILED).

Properties:

  • code? string
    • Inherited from: DaytonaInternalServerError.code
  • headers? AxiosHeaders
    • Inherited from: DaytonaInternalServerError.headers
  • source? string
    • Inherited from: DaytonaInternalServerError.source
  • statusCode? number
    • Inherited from: DaytonaInternalServerError.statusCode

Extends:

  • DaytonaInternalServerError

Accessors

errorCode

Inherited from: DaytonaInternalServerError.errorCode

Get Signature
get errorCode(): string;
Deprecated

Use DaytonaError.code instead. Kept so existing err.errorCode reads keep returning the machine-readable code.

Returns:

  • string - the machine-readable error code, or undefined when the response did not carry one (same as DaytonaError.code)

Constructors

Constructor

new DaytonaFileReadFailedError(
   message: string, 
   statusCode?: number, 
   headers?: AxiosHeaders, 
   code?: string, 
   source?: string
): DaytonaFileReadFailedError;

Parameters:

  • message string
  • statusCode? number
  • headers? AxiosHeaders
  • code? string
  • source? string

Returns:

  • DaytonaFileReadFailedError
Inherited from

DaytonaInternalServerError.constructor

DaytonaForbiddenError

The authenticated caller lacks permission for the operation (HTTP 403).

Properties:

  • code? string
    • Inherited from: DaytonaError.code
  • headers? AxiosHeaders
    • Inherited from: DaytonaError.headers
  • source? string
    • Inherited from: DaytonaError.source
  • statusCode? number
    • Inherited from: DaytonaError.statusCode

Extends:

  • DaytonaError

Extended by

  • DaytonaAuthorizationError
  • DaytonaFileAccessDeniedError

Accessors

errorCode

Inherited from: DaytonaError.errorCode

Get Signature
get errorCode(): string;
Deprecated

Use DaytonaError.code instead. Kept so existing err.errorCode reads keep returning the machine-readable code.

Returns:

  • string - the machine-readable error code, or undefined when the response did not carry one (same as DaytonaError.code)

Constructors

Constructor

new DaytonaForbiddenError(
   message: string, 
   statusCode?: number, 
   headers?: AxiosHeaders, 
   code?: string, 
   source?: string
): DaytonaForbiddenError;

Parameters:

  • message string
  • statusCode? number
  • headers? AxiosHeaders
  • code? string
  • source? string

Returns:

  • DaytonaForbiddenError
Inherited from

DaytonaError.constructor

DaytonaGitAuthFailedError

Git authentication against the remote failed (code GIT_AUTH_FAILED).

Properties:

  • code? string
    • Inherited from: DaytonaAuthenticationError.code
  • headers? AxiosHeaders
    • Inherited from: DaytonaAuthenticationError.headers
  • source? string
    • Inherited from: DaytonaAuthenticationError.source
  • statusCode? number
    • Inherited from: DaytonaAuthenticationError.statusCode

Extends:

  • DaytonaAuthenticationError

Accessors

errorCode

Inherited from: DaytonaAuthenticationError.errorCode

Get Signature
get errorCode(): string;
Deprecated

Use DaytonaError.code instead. Kept so existing err.errorCode reads keep returning the machine-readable code.

Returns:

  • string - the machine-readable error code, or undefined when the response did not carry one (same as DaytonaError.code)

Constructors

Constructor

new DaytonaGitAuthFailedError(
   message: string, 
   statusCode?: number, 
   headers?: AxiosHeaders, 
   code?: string, 
   source?: string
): DaytonaGitAuthFailedError;

Parameters:

  • message string
  • statusCode? number
  • headers? AxiosHeaders
  • code? string
  • source? string

Returns:

  • DaytonaGitAuthFailedError
Inherited from

DaytonaAuthenticationError.constructor

DaytonaGitBranchExistsError

The git branch already exists (code GIT_BRANCH_EXISTS).

Properties:

  • code? string
    • Inherited from: DaytonaConflictError.code
  • headers? AxiosHeaders
    • Inherited from: DaytonaConflictError.headers
  • source? string
    • Inherited from: DaytonaConflictError.source
  • statusCode? number
    • Inherited from: DaytonaConflictError.statusCode

Extends:

  • DaytonaConflictError

Accessors

errorCode

Inherited from: DaytonaConflictError.errorCode

Get Signature
get errorCode(): string;
Deprecated

Use DaytonaError.code instead. Kept so existing err.errorCode reads keep returning the machine-readable code.

Returns:

  • string - the machine-readable error code, or undefined when the response did not carry one (same as DaytonaError.code)

Constructors

Constructor

new DaytonaGitBranchExistsError(
   message: string, 
   statusCode?: number, 
   headers?: AxiosHeaders, 
   code?: string, 
   source?: string
): DaytonaGitBranchExistsError;

Parameters:

  • message string
  • statusCode? number
  • headers? AxiosHeaders
  • code? string
  • source? string

Returns:

  • DaytonaGitBranchExistsError
Inherited from

DaytonaConflictError.constructor

DaytonaGitBranchNotFoundError

The git branch does not exist (code GIT_BRANCH_NOT_FOUND).

Properties:

  • code? string
    • Inherited from: DaytonaNotFoundError.code
  • headers? AxiosHeaders
    • Inherited from: DaytonaNotFoundError.headers
  • source? string
    • Inherited from: DaytonaNotFoundError.source
  • statusCode? number
    • Inherited from: DaytonaNotFoundError.statusCode

Extends:

  • DaytonaNotFoundError

Accessors

errorCode

Inherited from: DaytonaNotFoundError.errorCode

Get Signature
get errorCode(): string;
Deprecated

Use DaytonaError.code instead. Kept so existing err.errorCode reads keep returning the machine-readable code.

Returns:

  • string - the machine-readable error code, or undefined when the response did not carry one (same as DaytonaError.code)

Constructors

Constructor

new DaytonaGitBranchNotFoundError(
   message: string, 
   statusCode?: number, 
   headers?: AxiosHeaders, 
   code?: string, 
   source?: string
): DaytonaGitBranchNotFoundError;

Parameters:

  • message string
  • statusCode? number
  • headers? AxiosHeaders
  • code? string
  • source? string

Returns:

  • DaytonaGitBranchNotFoundError
Inherited from

DaytonaNotFoundError.constructor

DaytonaGitDirtyWorktreeError

The operation requires a clean worktree (code GIT_DIRTY_WORKTREE).

Properties:

  • code? string
    • Inherited from: DaytonaConflictError.code
  • headers? AxiosHeaders
    • Inherited from: DaytonaConflictError.headers
  • source? string
    • Inherited from: DaytonaConflictError.source
  • statusCode? number
    • Inherited from: DaytonaConflictError.statusCode

Extends:

  • DaytonaConflictError

Accessors

errorCode

Inherited from: DaytonaConflictError.errorCode

Get Signature
get errorCode(): string;
Deprecated

Use DaytonaError.code instead. Kept so existing err.errorCode reads keep returning the machine-readable code.

Returns:

  • string - the machine-readable error code, or undefined when the response did not carry one (same as DaytonaError.code)

Constructors

Constructor

new DaytonaGitDirtyWorktreeError(
   message: string, 
   statusCode?: number, 
   headers?: AxiosHeaders, 
   code?: string, 
   source?: string
): DaytonaGitDirtyWorktreeError;

Parameters:

  • message string
  • statusCode? number
  • headers? AxiosHeaders
  • code? string
  • source? string

Returns:

  • DaytonaGitDirtyWorktreeError
Inherited from

DaytonaConflictError.constructor

DaytonaGitMergeConflictError

A git merge produced conflicts (code GIT_MERGE_CONFLICT).

Properties:

  • code? string
    • Inherited from: DaytonaConflictError.code
  • headers? AxiosHeaders
    • Inherited from: DaytonaConflictError.headers
  • source? string
    • Inherited from: DaytonaConflictError.source
  • statusCode? number
    • Inherited from: DaytonaConflictError.statusCode

Extends:

  • DaytonaConflictError

Accessors

errorCode

Inherited from: DaytonaConflictError.errorCode

Get Signature
get errorCode(): string;
Deprecated

Use DaytonaError.code instead. Kept so existing err.errorCode reads keep returning the machine-readable code.

Returns:

  • string - the machine-readable error code, or undefined when the response did not carry one (same as DaytonaError.code)

Constructors

Constructor

new DaytonaGitMergeConflictError(
   message: string, 
   statusCode?: number, 
   headers?: AxiosHeaders, 
   code?: string, 
   source?: string
): DaytonaGitMergeConflictError;

Parameters:

  • message string
  • statusCode? number
  • headers? AxiosHeaders
  • code? string
  • source? string

Returns:

  • DaytonaGitMergeConflictError
Inherited from

DaytonaConflictError.constructor

DaytonaGitPushRejectedError

The git push was rejected by the remote (code GIT_PUSH_REJECTED).

Properties:

  • code? string
    • Inherited from: DaytonaConflictError.code
  • headers? AxiosHeaders
    • Inherited from: DaytonaConflictError.headers
  • source? string
    • Inherited from: DaytonaConflictError.source
  • statusCode? number
    • Inherited from: DaytonaConflictError.statusCode

Extends:

  • DaytonaConflictError

Accessors

errorCode

Inherited from: DaytonaConflictError.errorCode

Get Signature
get errorCode(): string;
Deprecated

Use DaytonaError.code instead. Kept so existing err.errorCode reads keep returning the machine-readable code.

Returns:

  • string - the machine-readable error code, or undefined when the response did not carry one (same as DaytonaError.code)

Constructors

Constructor

new DaytonaGitPushRejectedError(
   message: string, 
   statusCode?: number, 
   headers?: AxiosHeaders, 
   code?: string, 
   source?: string
): DaytonaGitPushRejectedError;

Parameters:

  • message string
  • statusCode? number
  • headers? AxiosHeaders
  • code? string
  • source? string

Returns:

  • DaytonaGitPushRejectedError
Inherited from

DaytonaConflictError.constructor

DaytonaGitRemoteRejectedError

The git remote rejected the operation — hooks, branch protection or quota (code GIT_REMOTE_REJECTED).

Properties:

  • code? string
    • Inherited from: DaytonaUnprocessableEntityError.code
  • headers? AxiosHeaders
    • Inherited from: DaytonaUnprocessableEntityError.headers
  • source? string
    • Inherited from: DaytonaUnprocessableEntityError.source
  • statusCode? number
    • Inherited from: DaytonaUnprocessableEntityError.statusCode

Extends:

  • DaytonaUnprocessableEntityError

Accessors

errorCode

Inherited from: DaytonaUnprocessableEntityError.errorCode

Get Signature
get errorCode(): string;
Deprecated

Use DaytonaError.code instead. Kept so existing err.errorCode reads keep returning the machine-readable code.

Returns:

  • string - the machine-readable error code, or undefined when the response did not carry one (same as DaytonaError.code)

Constructors

Constructor

new DaytonaGitRemoteRejectedError(
   message: string, 
   statusCode?: number, 
   headers?: AxiosHeaders, 
   code?: string, 
   source?: string
): DaytonaGitRemoteRejectedError;

Parameters:

  • message string
  • statusCode? number
  • headers? AxiosHeaders
  • code? string
  • source? string

Returns:

  • DaytonaGitRemoteRejectedError
Inherited from

DaytonaUnprocessableEntityError.constructor

DaytonaGitRepoNotFoundError

The git remote repository was not found (code GIT_REPO_NOT_FOUND).

Properties:

  • code? string
    • Inherited from: DaytonaNotFoundError.code
  • headers? AxiosHeaders
    • Inherited from: DaytonaNotFoundError.headers
  • source? string
    • Inherited from: DaytonaNotFoundError.source
  • statusCode? number
    • Inherited from: DaytonaNotFoundError.statusCode

Extends:

  • DaytonaNotFoundError

Accessors

errorCode

Inherited from: DaytonaNotFoundError.errorCode

Get Signature
get errorCode(): string;
Deprecated

Use DaytonaError.code instead. Kept so existing err.errorCode reads keep returning the machine-readable code.

Returns:

  • string - the machine-readable error code, or undefined when the response did not carry one (same as DaytonaError.code)

Constructors

Constructor

new DaytonaGitRepoNotFoundError(
   message: string, 
   statusCode?: number, 
   headers?: AxiosHeaders, 
   code?: string, 
   source?: string
): DaytonaGitRepoNotFoundError;

Parameters:

  • message string
  • statusCode? number
  • headers? AxiosHeaders
  • code? string
  • source? string

Returns:

  • DaytonaGitRepoNotFoundError
Inherited from

DaytonaNotFoundError.constructor

DaytonaGitTransportFailedError

The git remote was unreachable — DNS, TLS, connection or timeout failure (code GIT_TRANSPORT_FAILED).

Properties:

  • code? string
    • Inherited from: DaytonaBadGatewayError.code
  • headers? AxiosHeaders
    • Inherited from: DaytonaBadGatewayError.headers
  • source? string
    • Inherited from: DaytonaBadGatewayError.source
  • statusCode? number
    • Inherited from: DaytonaBadGatewayError.statusCode

Extends:

  • DaytonaBadGatewayError

Accessors

errorCode

Inherited from: DaytonaBadGatewayError.errorCode

Get Signature
get errorCode(): string;
Deprecated

Use DaytonaError.code instead. Kept so existing err.errorCode reads keep returning the machine-readable code.

Returns:

  • string - the machine-readable error code, or undefined when the response did not carry one (same as DaytonaError.code)

Constructors

Constructor

new DaytonaGitTransportFailedError(
   message: string, 
   statusCode?: number, 
   headers?: AxiosHeaders, 
   code?: string, 
   source?: string
): DaytonaGitTransportFailedError;

Parameters:

  • message string
  • statusCode? number
  • headers? AxiosHeaders
  • code? string
  • source? string

Returns:

  • DaytonaGitTransportFailedError
Inherited from

DaytonaBadGatewayError.constructor

DaytonaGoneError

The resource existed but is permanently gone (HTTP 410).

Properties:

  • code? string
    • Inherited from: DaytonaError.code
  • headers? AxiosHeaders
    • Inherited from: DaytonaError.headers
  • source? string
    • Inherited from: DaytonaError.source
  • statusCode? number
    • Inherited from: DaytonaError.statusCode

Extends:

  • DaytonaError

Extended by

  • DaytonaSessionEndedError
  • DaytonaCommandAlreadyCompletedError

Accessors

errorCode

Inherited from: DaytonaError.errorCode

Get Signature
get errorCode(): string;
Deprecated

Use DaytonaError.code instead. Kept so existing err.errorCode reads keep returning the machine-readable code.

Returns:

  • string - the machine-readable error code, or undefined when the response did not carry one (same as DaytonaError.code)

Constructors

Constructor

new DaytonaGoneError(
   message: string, 
   statusCode?: number, 
   headers?: AxiosHeaders, 
   code?: string, 
   source?: string
): DaytonaGoneError;

Parameters:

  • message string
  • statusCode? number
  • headers? AxiosHeaders
  • code? string
  • source? string

Returns:

  • DaytonaGoneError
Inherited from

DaytonaError.constructor

DaytonaInternalServerError

A Daytona service failed unexpectedly (HTTP 500).

Properties:

  • code? string
    • Inherited from: DaytonaError.code
  • headers? AxiosHeaders
    • Inherited from: DaytonaError.headers
  • source? string
    • Inherited from: DaytonaError.source
  • statusCode? number
    • Inherited from: DaytonaError.statusCode

Extends:

  • DaytonaError

Extended by

  • DaytonaFileReadFailedError

Accessors

errorCode

Inherited from: DaytonaError.errorCode

Get Signature
get errorCode(): string;
Deprecated

Use DaytonaError.code instead. Kept so existing err.errorCode reads keep returning the machine-readable code.

Returns:

  • string - the machine-readable error code, or undefined when the response did not carry one (same as DaytonaError.code)

Constructors

Constructor

new DaytonaInternalServerError(
   message: string, 
   statusCode?: number, 
   headers?: AxiosHeaders, 
   code?: string, 
   source?: string
): DaytonaInternalServerError;

Parameters:

  • message string
  • statusCode? number
  • headers? AxiosHeaders
  • code? string
  • source? string

Returns:

  • DaytonaInternalServerError
Inherited from

DaytonaError.constructor

DaytonaInvalidArgumentError

The SDK rejected the caller's arguments locally, before any request was sent. statusCode, code and source are always undefined — no Daytona service was contacted, so there is no HTTP status to report.

Properties:

  • code? string
    • Inherited from: DaytonaValidationError.code
  • headers? AxiosHeaders
    • Inherited from: DaytonaValidationError.headers
  • source? string
    • Inherited from: DaytonaValidationError.source
  • statusCode? number
    • Inherited from: DaytonaValidationError.statusCode

Distinct from DaytonaBadRequestError (a service returned HTTP 400) and DaytonaUnprocessableEntityError (a service returned HTTP 422). This one always means: fix the arguments at the call site.

Example:

try {
  await sandbox.setAutoStopInterval(-1)
} catch (err) {
  if (err instanceof DaytonaInvalidArgumentError) {
    // never reached the API — the value itself is invalid
  }
}

Extends:

  • DaytonaValidationError

Accessors

errorCode

Inherited from: DaytonaValidationError.errorCode

Get Signature
get errorCode(): string;
Deprecated

Use DaytonaError.code instead. Kept so existing err.errorCode reads keep returning the machine-readable code.

Returns:

  • string - the machine-readable error code, or undefined when the response did not carry one (same as DaytonaError.code)

Constructors

Constructor

new DaytonaInvalidArgumentError(
   message: string, 
   statusCode?: number, 
   headers?: AxiosHeaders, 
   code?: string, 
   source?: string
): DaytonaInvalidArgumentError;

Parameters:

  • message string
  • statusCode? number
  • headers? AxiosHeaders
  • code? string
  • source? string

Returns:

  • DaytonaInvalidArgumentError
Inherited from

DaytonaValidationError.constructor

DaytonaInvalidFilePathError

The supplied file path was rejected by the daemon (code INVALID_FILE_PATH).

Properties:

  • code? string
    • Inherited from: DaytonaBadRequestError.code
  • headers? AxiosHeaders
    • Inherited from: DaytonaBadRequestError.headers
  • source? string
    • Inherited from: DaytonaBadRequestError.source
  • statusCode? number
    • Inherited from: DaytonaBadRequestError.statusCode

Extends:

  • DaytonaBadRequestError

Accessors

errorCode

Inherited from: DaytonaBadRequestError.errorCode

Get Signature
get errorCode(): string;
Deprecated

Use DaytonaError.code instead. Kept so existing err.errorCode reads keep returning the machine-readable code.

Returns:

  • string - the machine-readable error code, or undefined when the response did not carry one (same as DaytonaError.code)

Constructors

Constructor

new DaytonaInvalidFilePathError(
   message: string, 
   statusCode?: number, 
   headers?: AxiosHeaders, 
   code?: string, 
   source?: string
): DaytonaInvalidFilePathError;

Parameters:

  • message string
  • statusCode? number
  • headers? AxiosHeaders
  • code? string
  • source? string

Returns:

  • DaytonaInvalidFilePathError
Inherited from

DaytonaBadRequestError.constructor

DaytonaLspServerNotInitializedError

The LSP server must be initialized first (code LSP_SERVER_NOT_INITIALIZED).

Properties:

  • code? string
    • Inherited from: DaytonaBadRequestError.code
  • headers? AxiosHeaders
    • Inherited from: DaytonaBadRequestError.headers
  • source? string
    • Inherited from: DaytonaBadRequestError.source
  • statusCode? number
    • Inherited from: DaytonaBadRequestError.statusCode

Extends:

  • DaytonaBadRequestError

Accessors

errorCode

Inherited from: DaytonaBadRequestError.errorCode

Get Signature
get errorCode(): string;
Deprecated

Use DaytonaError.code instead. Kept so existing err.errorCode reads keep returning the machine-readable code.

Returns:

  • string - the machine-readable error code, or undefined when the response did not carry one (same as DaytonaError.code)

Constructors

Constructor

new DaytonaLspServerNotInitializedError(
   message: string, 
   statusCode?: number, 
   headers?: AxiosHeaders, 
   code?: string, 
   source?: string
): DaytonaLspServerNotInitializedError;

Parameters:

  • message string
  • statusCode? number
  • headers? AxiosHeaders
  • code? string
  • source? string

Returns:

  • DaytonaLspServerNotInitializedError
Inherited from

DaytonaBadRequestError.constructor

DaytonaNotFoundError

The requested resource does not exist (HTTP 404).

Properties:

  • code? string
    • Inherited from: DaytonaError.code
  • headers? AxiosHeaders
    • Inherited from: DaytonaError.headers
  • source? string
    • Inherited from: DaytonaError.source
  • statusCode? number
    • Inherited from: DaytonaError.statusCode

Extends:

  • DaytonaError

Extended by

  • DaytonaGitRepoNotFoundError
  • DaytonaGitBranchNotFoundError
  • DaytonaFileNotFoundError
  • DaytonaProcessNotFoundError

Accessors

errorCode

Inherited from: DaytonaError.errorCode

Get Signature
get errorCode(): string;
Deprecated

Use DaytonaError.code instead. Kept so existing err.errorCode reads keep returning the machine-readable code.

Returns:

  • string - the machine-readable error code, or undefined when the response did not carry one (same as DaytonaError.code)

Constructors

Constructor

new DaytonaNotFoundError(
   message: string, 
   statusCode?: number, 
   headers?: AxiosHeaders, 
   code?: string, 
   source?: string
): DaytonaNotFoundError;

Parameters:

  • message string
  • statusCode? number
  • headers? AxiosHeaders
  • code? string
  • source? string

Returns:

  • DaytonaNotFoundError
Inherited from

DaytonaError.constructor

DaytonaProcessExecutionTimeoutError

Command execution exceeded its timeout (code PROCESS_EXECUTION_TIMEOUT).

Properties:

  • code? string

    • Inherited from: DaytonaTimeoutError.code
  • headers? AxiosHeaders

    • Inherited from: DaytonaTimeoutError.headers
  • sandboxId? string - Set only on the DaytonaTimeoutError from Daytona.create() after the sandbox already exists. Undefined on every other timeout, including process-execution timeouts and queue timeouts.

    When it is set, pass it to get() and pass the returned Sandbox to delete(). The sandbox may still be starting. create() does not delete it.

    • Inherited from: DaytonaTimeoutError.sandboxId
  • source? string

    • Inherited from: DaytonaTimeoutError.source
  • statusCode? number

    • Inherited from: DaytonaTimeoutError.statusCode

Extends:

  • DaytonaTimeoutError

Accessors

errorCode

Inherited from: DaytonaTimeoutError.errorCode

Get Signature
get errorCode(): string;
Deprecated

Use DaytonaError.code instead. Kept so existing err.errorCode reads keep returning the machine-readable code.

Returns:

  • string - the machine-readable error code, or undefined when the response did not carry one (same as DaytonaError.code)

Constructors

Constructor

new DaytonaProcessExecutionTimeoutError(
   message: string, 
   statusCode?: number, 
   headers?: AxiosHeaders, 
   code?: string, 
   source?: string
): DaytonaProcessExecutionTimeoutError;

Parameters:

  • message string
  • statusCode? number
  • headers? AxiosHeaders
  • code? string
  • source? string

Returns:

  • DaytonaProcessExecutionTimeoutError
Inherited from

DaytonaTimeoutError.constructor

Methods

[hasInstance]()

static hasInstance: boolean;

Parameters:

  • value unknown

Returns:

  • boolean
Inherited from

DaytonaTimeoutError.[hasInstance]

DaytonaProcessNotFoundError

The sandbox process does not exist (code PROCESS_NOT_FOUND).

Properties:

  • code? string
    • Inherited from: DaytonaNotFoundError.code
  • headers? AxiosHeaders
    • Inherited from: DaytonaNotFoundError.headers
  • source? string
    • Inherited from: DaytonaNotFoundError.source
  • statusCode? number
    • Inherited from: DaytonaNotFoundError.statusCode

Extends:

  • DaytonaNotFoundError

Accessors

errorCode

Inherited from: DaytonaNotFoundError.errorCode

Get Signature
get errorCode(): string;
Deprecated

Use DaytonaError.code instead. Kept so existing err.errorCode reads keep returning the machine-readable code.

Returns:

  • string - the machine-readable error code, or undefined when the response did not carry one (same as DaytonaError.code)

Constructors

Constructor

new DaytonaProcessNotFoundError(
   message: string, 
   statusCode?: number, 
   headers?: AxiosHeaders, 
   code?: string, 
   source?: string
): DaytonaProcessNotFoundError;

Parameters:

  • message string
  • statusCode? number
  • headers? AxiosHeaders
  • code? string
  • source? string

Returns:

  • DaytonaProcessNotFoundError
Inherited from

DaytonaNotFoundError.constructor

DaytonaQueueTimeoutError

Raised when a sandbox was destroyed by the API because it waited longer than its queue timeout for a runner.

Properties:

  • code? string

    • Inherited from: DaytonaTimeoutError.code
  • headers? AxiosHeaders

    • Inherited from: DaytonaTimeoutError.headers
  • sandboxId? string - Set only on the DaytonaTimeoutError from Daytona.create() after the sandbox already exists. Undefined on every other timeout, including process-execution timeouts and queue timeouts.

    When it is set, pass it to get() and pass the returned Sandbox to delete(). The sandbox may still be starting. create() does not delete it.

    • Inherited from: DaytonaTimeoutError.sandboxId
  • source? string

    • Inherited from: DaytonaTimeoutError.source
  • statusCode? number

    • Inherited from: DaytonaTimeoutError.statusCode

Extends:

  • DaytonaTimeoutError

Accessors

errorCode

Inherited from: DaytonaTimeoutError.errorCode

Get Signature
get errorCode(): string;
Deprecated

Use DaytonaError.code instead. Kept so existing err.errorCode reads keep returning the machine-readable code.

Returns:

  • string - the machine-readable error code, or undefined when the response did not carry one (same as DaytonaError.code)

Constructors

Constructor

new DaytonaQueueTimeoutError(
   message: string, 
   statusCode?: number, 
   headers?: AxiosHeaders, 
   code?: string, 
   source?: string
): DaytonaQueueTimeoutError;

Parameters:

  • message string
  • statusCode? number
  • headers? AxiosHeaders
  • code? string
  • source? string

Returns:

  • DaytonaQueueTimeoutError
Inherited from

DaytonaTimeoutError.constructor

Methods

[hasInstance]()

static hasInstance: boolean;

Parameters:

  • value unknown

Returns:

  • boolean
Inherited from

DaytonaTimeoutError.[hasInstance]

DaytonaRateLimitError

The caller exceeded a rate limit (HTTP 429).

Properties:

  • code? string
    • Inherited from: DaytonaError.code
  • headers? AxiosHeaders
    • Inherited from: DaytonaError.headers
  • source? string
    • Inherited from: DaytonaError.source
  • statusCode? number
    • Inherited from: DaytonaError.statusCode

Extends:

  • DaytonaError

Accessors

errorCode

Inherited from: DaytonaError.errorCode

Get Signature
get errorCode(): string;
Deprecated

Use DaytonaError.code instead. Kept so existing err.errorCode reads keep returning the machine-readable code.

Returns:

  • string - the machine-readable error code, or undefined when the response did not carry one (same as DaytonaError.code)

Constructors

Constructor

new DaytonaRateLimitError(
   message: string, 
   statusCode?: number, 
   headers?: AxiosHeaders, 
   code?: string, 
   source?: string
): DaytonaRateLimitError;

Parameters:

  • message string
  • statusCode? number
  • headers? AxiosHeaders
  • code? string
  • source? string

Returns:

  • DaytonaRateLimitError
Inherited from

DaytonaError.constructor

DaytonaRecordingFfmpegNotFoundError

ffmpeg is not available for recording (code RECORDING_FFMPEG_NOT_FOUND).

Properties:

  • code? string
    • Inherited from: DaytonaServiceUnavailableError.code
  • headers? AxiosHeaders
    • Inherited from: DaytonaServiceUnavailableError.headers
  • source? string
    • Inherited from: DaytonaServiceUnavailableError.source
  • statusCode? number
    • Inherited from: DaytonaServiceUnavailableError.statusCode

Extends:

  • DaytonaServiceUnavailableError

Accessors

errorCode

Inherited from: DaytonaServiceUnavailableError.errorCode

Get Signature
get errorCode(): string;
Deprecated

Use DaytonaError.code instead. Kept so existing err.errorCode reads keep returning the machine-readable code.

Returns:

  • string - the machine-readable error code, or undefined when the response did not carry one (same as DaytonaError.code)

Constructors

Constructor

new DaytonaRecordingFfmpegNotFoundError(
   message: string, 
   statusCode?: number, 
   headers?: AxiosHeaders, 
   code?: string, 
   source?: string
): DaytonaRecordingFfmpegNotFoundError;

Parameters:

  • message string
  • statusCode? number
  • headers? AxiosHeaders
  • code? string
  • source? string

Returns:

  • DaytonaRecordingFfmpegNotFoundError
Inherited from

DaytonaServiceUnavailableError.constructor

DaytonaRecordingStillActiveError

A screen recording is still active (code RECORDING_STILL_ACTIVE).

Properties:

  • code? string
    • Inherited from: DaytonaConflictError.code
  • headers? AxiosHeaders
    • Inherited from: DaytonaConflictError.headers
  • source? string
    • Inherited from: DaytonaConflictError.source
  • statusCode? number
    • Inherited from: DaytonaConflictError.statusCode

Extends:

  • DaytonaConflictError

Accessors

errorCode

Inherited from: DaytonaConflictError.errorCode

Get Signature
get errorCode(): string;
Deprecated

Use DaytonaError.code instead. Kept so existing err.errorCode reads keep returning the machine-readable code.

Returns:

  • string - the machine-readable error code, or undefined when the response did not carry one (same as DaytonaError.code)

Constructors

Constructor

new DaytonaRecordingStillActiveError(
   message: string, 
   statusCode?: number, 
   headers?: AxiosHeaders, 
   code?: string, 
   source?: string
): DaytonaRecordingStillActiveError;

Parameters:

  • message string
  • statusCode? number
  • headers? AxiosHeaders
  • code? string
  • source? string

Returns:

  • DaytonaRecordingStillActiveError
Inherited from

DaytonaConflictError.constructor

DaytonaServiceUnavailableError

The service is temporarily unable to handle the request (HTTP 503).

Properties:

  • code? string
    • Inherited from: DaytonaError.code
  • headers? AxiosHeaders
    • Inherited from: DaytonaError.headers
  • source? string
    • Inherited from: DaytonaError.source
  • statusCode? number
    • Inherited from: DaytonaError.statusCode

Extends:

  • DaytonaError

Extended by

  • DaytonaA11yUnavailableError
  • DaytonaRecordingFfmpegNotFoundError

Accessors

errorCode

Inherited from: DaytonaError.errorCode

Get Signature
get errorCode(): string;
Deprecated

Use DaytonaError.code instead. Kept so existing err.errorCode reads keep returning the machine-readable code.

Returns:

  • string - the machine-readable error code, or undefined when the response did not carry one (same as DaytonaError.code)

Constructors

Constructor

new DaytonaServiceUnavailableError(
   message: string, 
   statusCode?: number, 
   headers?: AxiosHeaders, 
   code?: string, 
   source?: string
): DaytonaServiceUnavailableError;

Parameters:

  • message string
  • statusCode? number
  • headers? AxiosHeaders
  • code? string
  • source? string

Returns:

  • DaytonaServiceUnavailableError
Inherited from

DaytonaError.constructor

DaytonaSessionEndedError

The session has already ended (code SESSION_ENDED).

Properties:

  • code? string
    • Inherited from: DaytonaGoneError.code
  • headers? AxiosHeaders
    • Inherited from: DaytonaGoneError.headers
  • source? string
    • Inherited from: DaytonaGoneError.source
  • statusCode? number
    • Inherited from: DaytonaGoneError.statusCode

Extends:

  • DaytonaGoneError

Accessors

errorCode

Inherited from: DaytonaGoneError.errorCode

Get Signature
get errorCode(): string;
Deprecated

Use DaytonaError.code instead. Kept so existing err.errorCode reads keep returning the machine-readable code.

Returns:

  • string - the machine-readable error code, or undefined when the response did not carry one (same as DaytonaError.code)

Constructors

Constructor

new DaytonaSessionEndedError(
   message: string, 
   statusCode?: number, 
   headers?: AxiosHeaders, 
   code?: string, 
   source?: string
): DaytonaSessionEndedError;

Parameters:

  • message string
  • statusCode? number
  • headers? AxiosHeaders
  • code? string
  • source? string

Returns:

  • DaytonaSessionEndedError
Inherited from

DaytonaGoneError.constructor

DaytonaSpotEvictedError

Raised when a sandbox was destroyed by spot preemption.

Properties:

  • code? string
    • Inherited from: DaytonaError.code
  • headers? AxiosHeaders
    • Inherited from: DaytonaError.headers
  • source? string
    • Inherited from: DaytonaError.source
  • statusCode? number
    • Inherited from: DaytonaError.statusCode

Extends:

  • DaytonaError

Accessors

errorCode

Inherited from: DaytonaError.errorCode

Get Signature
get errorCode(): string;
Deprecated

Use DaytonaError.code instead. Kept so existing err.errorCode reads keep returning the machine-readable code.

Returns:

  • string - the machine-readable error code, or undefined when the response did not carry one (same as DaytonaError.code)

Constructors

Constructor

new DaytonaSpotEvictedError(
   message: string, 
   statusCode?: number, 
   headers?: AxiosHeaders, 
   code?: string, 
   source?: string
): DaytonaSpotEvictedError;

Parameters:

  • message string
  • statusCode? number
  • headers? AxiosHeaders
  • code? string
  • source? string

Returns:

  • DaytonaSpotEvictedError
Inherited from

DaytonaError.constructor

DaytonaTimeoutError

The operation timed out (HTTP 408, or 504 when a gateway timed out).

Properties:

  • code? string

    • Inherited from: DaytonaError.code
  • headers? AxiosHeaders

    • Inherited from: DaytonaError.headers
  • sandboxId? string - Set only on the DaytonaTimeoutError from Daytona.create() after the sandbox already exists. Undefined on every other timeout, including process-execution timeouts and queue timeouts.

    When it is set, pass it to get() and pass the returned Sandbox to delete(). The sandbox may still be starting. create() does not delete it.

  • source? string

    • Inherited from: DaytonaError.source
  • statusCode? number

    • Inherited from: DaytonaError.statusCode

Also matches DaytonaConnectionTimeoutError via instanceof, even though that class sits under DaytonaConnectionError in the prototype chain. Transport timeouts were raised as DaytonaTimeoutError before DaytonaConnectionTimeoutError existed, so this keeps pre-existing catch (err) { if (err instanceof DaytonaTimeoutError) ... } blocks working — the same compatibility the Python SDK gets from inheriting both classes.

Extends:

  • DaytonaError

Extended by

  • DaytonaQueueTimeoutError
  • DaytonaProcessExecutionTimeoutError

Accessors

errorCode

Inherited from: DaytonaError.errorCode

Get Signature
get errorCode(): string;
Deprecated

Use DaytonaError.code instead. Kept so existing err.errorCode reads keep returning the machine-readable code.

Returns:

  • string - the machine-readable error code, or undefined when the response did not carry one (same as DaytonaError.code)

Constructors

Constructor

new DaytonaTimeoutError(
   message: string, 
   statusCode?: number, 
   headers?: AxiosHeaders, 
   code?: string, 
   source?: string
): DaytonaTimeoutError;

Parameters:

  • message string
  • statusCode? number
  • headers? AxiosHeaders
  • code? string
  • source? string

Returns:

  • DaytonaTimeoutError
Inherited from

DaytonaError.constructor

Methods

[hasInstance]()

static hasInstance: boolean;

Parameters:

  • value unknown

Returns:

  • boolean

DaytonaUnprocessableEntityError

The request was well-formed but semantically invalid (HTTP 422).

Properties:

  • code? string
    • Inherited from: DaytonaError.code
  • headers? AxiosHeaders
    • Inherited from: DaytonaError.headers
  • source? string
    • Inherited from: DaytonaError.source
  • statusCode? number
    • Inherited from: DaytonaError.statusCode

Extends:

  • DaytonaError

Extended by

  • DaytonaGitRemoteRejectedError

Accessors

errorCode

Inherited from: DaytonaError.errorCode

Get Signature
get errorCode(): string;
Deprecated

Use DaytonaError.code instead. Kept so existing err.errorCode reads keep returning the machine-readable code.

Returns:

  • string - the machine-readable error code, or undefined when the response did not carry one (same as DaytonaError.code)

Constructors

Constructor

new DaytonaUnprocessableEntityError(
   message: string, 
   statusCode?: number, 
   headers?: AxiosHeaders, 
   code?: string, 
   source?: string
): DaytonaUnprocessableEntityError;

Parameters:

  • message string
  • statusCode? number
  • headers? AxiosHeaders
  • code? string
  • source? string

Returns:

  • DaytonaUnprocessableEntityError
Inherited from

DaytonaError.constructor

DaytonaValidationError

Legacy umbrella for validation failures. Kept so existing catch (err) { if (err instanceof DaytonaValidationError) ... } blocks keep matching both server-returned HTTP 400s and locally rejected arguments.

Properties:

  • code? string
    • Inherited from: DaytonaBadRequestError.code
  • headers? AxiosHeaders
    • Inherited from: DaytonaBadRequestError.headers
  • source? string
    • Inherited from: DaytonaBadRequestError.source
  • statusCode? number
    • Inherited from: DaytonaBadRequestError.statusCode

Deprecated

Do not throw or catch this directly in new code. Branch on the precise class instead:

  • DaytonaInvalidArgumentError — the SDK rejected your arguments locally, before any request was sent.
  • DaytonaBadRequestError — a Daytona service returned HTTP 400.
  • DaytonaUnprocessableEntityError — a Daytona service returned HTTP 422 (well-formed but semantically invalid).

Extends:

  • DaytonaBadRequestError

Extended by

  • DaytonaInvalidArgumentError

Accessors

errorCode

Inherited from: DaytonaBadRequestError.errorCode

Get Signature
get errorCode(): string;
Deprecated

Use DaytonaError.code instead. Kept so existing err.errorCode reads keep returning the machine-readable code.

Returns:

  • string - the machine-readable error code, or undefined when the response did not carry one (same as DaytonaError.code)

Constructors

Constructor

new DaytonaValidationError(
   message: string, 
   statusCode?: number, 
   headers?: AxiosHeaders, 
   code?: string, 
   source?: string
): DaytonaValidationError;

Parameters:

  • message string
  • statusCode? number
  • headers? AxiosHeaders
  • code? string
  • source? string

Returns:

  • DaytonaValidationError
Inherited from

DaytonaBadRequestError.constructor

createAxiosDaytonaError()

function createAxiosDaytonaError(error: AxiosError): DaytonaError;

Creates the appropriate Daytona error subclass from an Axios error. Maps client-side timeouts to DaytonaConnectionTimeoutError, networking failures (no response received) to DaytonaConnectionError, and HTTP responses to the most specific subclass via createDaytonaError.

Parameters:

  • error AxiosError

Returns:

  • DaytonaError

createDaytonaError()

function createDaytonaError(
   message: string, 
   statusCode?: number, 
   headers?: AxiosHeaders, 
   code?: string, 
   source?: string
): DaytonaError;

Creates the appropriate Daytona error subclass from structured error metadata.

Resolution order: (source, code) override -> HTTP status code -> DaytonaError.

Parameters:

  • message string
  • statusCode? number
  • headers? AxiosHeaders
  • code? string
  • source? string

Returns:

  • DaytonaError

errorClassFromStatusCode()

function errorClassFromStatusCode(statusCode?: number): typeof DaytonaError;

Maps an HTTP status code to the corresponding Daytona error class.

Parameters:

  • statusCode? number

Returns

typeof DaytonaError


ResponseHeaders

type ResponseHeaders = InstanceType<typeof AxiosHeaders>;

SOURCE_API

const SOURCE_API: "DAYTONA_API" = 'DAYTONA_API';

Wire-format source identifiers set by the translation layer when a Daytona service stamps them on the wire envelope. source = undefined means the response did not carry a structured envelope (treat as opaque).


SOURCE_DAEMON

const SOURCE_DAEMON: "DAYTONA_DAEMON" = 'DAYTONA_DAEMON';

SOURCE_PROXY

const SOURCE_PROXY: "DAYTONA_PROXY" = 'DAYTONA_PROXY';

On this page

DaytonaA11yUnavailableErrorAccessorserrorCodeConstructorsConstructorDaytonaAuthenticationErrorExtended byAccessorserrorCodeConstructorsConstructorDaytonaAuthorizationErrorDeprecatedAccessorserrorCodeConstructorsConstructorDaytonaBadGatewayErrorExtended byAccessorserrorCodeConstructorsConstructorDaytonaBadRequestErrorExtended byAccessorserrorCodeConstructorsConstructorDaytonaCommandAlreadyCompletedErrorAccessorserrorCodeConstructorsConstructorDaytonaConflictErrorExtended byAccessorserrorCodeConstructorsConstructorDaytonaConnectionErrorExtended byAccessorserrorCodeConstructorsConstructorDaytonaConnectionTimeoutErrorAccessorserrorCodeConstructorsConstructorDaytonaErrorExtended byAccessorserrorCodeConstructorsConstructorDaytonaFileAccessDeniedErrorAccessorserrorCodeConstructorsConstructorDaytonaFileNotFoundErrorAccessorserrorCodeConstructorsConstructorDaytonaFileReadFailedErrorAccessorserrorCodeConstructorsConstructorDaytonaForbiddenErrorExtended byAccessorserrorCodeConstructorsConstructorDaytonaGitAuthFailedErrorAccessorserrorCodeConstructorsConstructorDaytonaGitBranchExistsErrorAccessorserrorCodeConstructorsConstructorDaytonaGitBranchNotFoundErrorAccessorserrorCodeConstructorsConstructorDaytonaGitDirtyWorktreeErrorAccessorserrorCodeConstructorsConstructorDaytonaGitMergeConflictErrorAccessorserrorCodeConstructorsConstructorDaytonaGitPushRejectedErrorAccessorserrorCodeConstructorsConstructorDaytonaGitRemoteRejectedErrorAccessorserrorCodeConstructorsConstructorDaytonaGitRepoNotFoundErrorAccessorserrorCodeConstructorsConstructorDaytonaGitTransportFailedErrorAccessorserrorCodeConstructorsConstructorDaytonaGoneErrorExtended byAccessorserrorCodeConstructorsConstructorDaytonaInternalServerErrorExtended byAccessorserrorCodeConstructorsConstructorDaytonaInvalidArgumentErrorAccessorserrorCodeConstructorsConstructorDaytonaInvalidFilePathErrorAccessorserrorCodeConstructorsConstructorDaytonaLspServerNotInitializedErrorAccessorserrorCodeConstructorsConstructorDaytonaNotFoundErrorExtended byAccessorserrorCodeConstructorsConstructorDaytonaProcessExecutionTimeoutErrorAccessorserrorCodeConstructorsConstructorMethods[hasInstance]()DaytonaProcessNotFoundErrorAccessorserrorCodeConstructorsConstructorDaytonaQueueTimeoutErrorAccessorserrorCodeConstructorsConstructorMethods[hasInstance]()DaytonaRateLimitErrorAccessorserrorCodeConstructorsConstructorDaytonaRecordingFfmpegNotFoundErrorAccessorserrorCodeConstructorsConstructorDaytonaRecordingStillActiveErrorAccessorserrorCodeConstructorsConstructorDaytonaServiceUnavailableErrorExtended byAccessorserrorCodeConstructorsConstructorDaytonaSessionEndedErrorAccessorserrorCodeConstructorsConstructorDaytonaSpotEvictedErrorAccessorserrorCodeConstructorsConstructorDaytonaTimeoutErrorExtended byAccessorserrorCodeConstructorsConstructorMethods[hasInstance]()DaytonaUnprocessableEntityErrorExtended byAccessorserrorCodeConstructorsConstructorDaytonaValidationErrorDeprecatedExtended byAccessorserrorCodeConstructorsConstructorcreateAxiosDaytonaError()createDaytonaError()errorClassFromStatusCode()ReturnsResponseHeadersSOURCE_APISOURCE_DAEMONSOURCE_PROXY