DaytonaA11yUnavailableError
The accessibility service is unavailable (code A11Y_UNAVAILABLE).
Properties:
code?string- Inherited from:
DaytonaServiceUnavailableError.code
- Inherited from:
headers?AxiosHeaders- Inherited from:
DaytonaServiceUnavailableError.headers
- Inherited from:
source?string- Inherited from:
DaytonaServiceUnavailableError.source
- Inherited from:
statusCode?number- Inherited from:
DaytonaServiceUnavailableError.statusCode
- Inherited from:
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, orundefinedwhen 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:
messagestringstatusCode?numberheaders?AxiosHeaderscode?stringsource?string
Returns:
DaytonaA11yUnavailableError
Inherited from
DaytonaServiceUnavailableError.constructor
DaytonaAuthenticationError
Authentication failed — missing or invalid credentials (HTTP 401).
Properties:
code?string- Inherited from:
DaytonaError.code
- Inherited from:
headers?AxiosHeaders- Inherited from:
DaytonaError.headers
- Inherited from:
source?string- Inherited from:
DaytonaError.source
- Inherited from:
statusCode?number- Inherited from:
DaytonaError.statusCode
- Inherited from:
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, orundefinedwhen 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:
messagestringstatusCode?numberheaders?AxiosHeaderscode?stringsource?string
Returns:
DaytonaAuthenticationError
Inherited from
DaytonaError.constructor
DaytonaAuthorizationError
Deprecated
Properties:
stringcode?- Inherited from:
DaytonaForbiddenError.code
- Inherited from:
AxiosHeadersheaders?- Inherited from:
DaytonaForbiddenError.headers
- Inherited from:
stringsource?- Inherited from:
DaytonaForbiddenError.source
- Inherited from:
numberstatusCode?- Inherited from:
DaytonaForbiddenError.statusCode
- Inherited from:
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, orundefinedwhen 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:
messagestringstatusCode?numberheaders?AxiosHeaderscode?stringsource?string
Returns:
DaytonaAuthorizationError
Inherited from
DaytonaForbiddenError.constructor
DaytonaBadGatewayError
An upstream gateway returned an invalid response (HTTP 502).
Properties:
code?string- Inherited from:
DaytonaError.code
- Inherited from:
headers?AxiosHeaders- Inherited from:
DaytonaError.headers
- Inherited from:
source?string- Inherited from:
DaytonaError.source
- Inherited from:
statusCode?number- Inherited from:
DaytonaError.statusCode
- Inherited from:
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, orundefinedwhen 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:
messagestringstatusCode?numberheaders?AxiosHeaderscode?stringsource?string
Returns:
DaytonaBadGatewayError
Inherited from
DaytonaError.constructor
DaytonaBadRequestError
The request was malformed or invalid (HTTP 400).
Properties:
code?string- Inherited from:
DaytonaError.code
- Inherited from:
headers?AxiosHeaders- Inherited from:
DaytonaError.headers
- Inherited from:
source?string- Inherited from:
DaytonaError.source
- Inherited from:
statusCode?number- Inherited from:
DaytonaError.statusCode
- Inherited from:
Extends:
DaytonaError
Extended by
DaytonaValidationErrorDaytonaInvalidFilePathErrorDaytonaLspServerNotInitializedError
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, orundefinedwhen 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:
messagestringstatusCode?numberheaders?AxiosHeaderscode?stringsource?string
Returns:
DaytonaBadRequestError
Inherited from
DaytonaError.constructor
DaytonaCommandAlreadyCompletedError
The session command already finished (code COMMAND_ALREADY_COMPLETED).
Properties:
code?string- Inherited from:
DaytonaGoneError.code
- Inherited from:
headers?AxiosHeaders- Inherited from:
DaytonaGoneError.headers
- Inherited from:
source?string- Inherited from:
DaytonaGoneError.source
- Inherited from:
statusCode?number- Inherited from:
DaytonaGoneError.statusCode
- Inherited from:
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, orundefinedwhen 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:
messagestringstatusCode?numberheaders?AxiosHeaderscode?stringsource?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
- Inherited from:
headers?AxiosHeaders- Inherited from:
DaytonaError.headers
- Inherited from:
source?string- Inherited from:
DaytonaError.source
- Inherited from:
statusCode?number- Inherited from:
DaytonaError.statusCode
- Inherited from:
Extends:
DaytonaError
Extended by
DaytonaGitBranchExistsErrorDaytonaGitPushRejectedErrorDaytonaGitDirtyWorktreeErrorDaytonaGitMergeConflictErrorDaytonaRecordingStillActiveError
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, orundefinedwhen 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:
messagestringstatusCode?numberheaders?AxiosHeaderscode?stringsource?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
- Inherited from:
headers?AxiosHeaders- Inherited from:
DaytonaError.headers
- Inherited from:
source?string- Inherited from:
DaytonaError.source
- Inherited from:
statusCode?number- Inherited from:
DaytonaError.statusCode
- Inherited from:
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, orundefinedwhen 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:
messagestringstatusCode?numberheaders?AxiosHeaderscode?stringsource?string
Returns:
DaytonaConnectionError
Inherited from
DaytonaError.constructor
DaytonaConnectionTimeoutError
Transport-layer timeout (connect / read). Subclass of DaytonaConnectionError.
Properties:
code?string- Inherited from:
DaytonaConnectionError.code
- Inherited from:
headers?AxiosHeaders- Inherited from:
DaytonaConnectionError.headers
- Inherited from:
source?string- Inherited from:
DaytonaConnectionError.source
- Inherited from:
statusCode?number- Inherited from:
DaytonaConnectionError.statusCode
- Inherited from:
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, orundefinedwhen 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:
messagestringstatusCode?numberheaders?AxiosHeaderscode?stringsource?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?stringheaders?AxiosHeaderssource?stringstatusCode?number
Extends:
Error
Extended by
DaytonaBadRequestErrorDaytonaAuthenticationErrorDaytonaForbiddenErrorDaytonaNotFoundErrorDaytonaTimeoutErrorDaytonaConflictErrorDaytonaGoneErrorDaytonaUnprocessableEntityErrorDaytonaRateLimitErrorDaytonaInternalServerErrorDaytonaBadGatewayErrorDaytonaServiceUnavailableErrorDaytonaConnectionError
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, orundefinedwhen 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:
messagestringstatusCode?numberheaders?AxiosHeaderscode?stringsource?string
Returns:
DaytonaError
Overrides
Error.constructorDaytonaFileAccessDeniedError
Access to the sandbox file was denied (code FILE_ACCESS_DENIED).
Properties:
code?string- Inherited from:
DaytonaForbiddenError.code
- Inherited from:
headers?AxiosHeaders- Inherited from:
DaytonaForbiddenError.headers
- Inherited from:
source?string- Inherited from:
DaytonaForbiddenError.source
- Inherited from:
statusCode?number- Inherited from:
DaytonaForbiddenError.statusCode
- Inherited from:
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, orundefinedwhen 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:
messagestringstatusCode?numberheaders?AxiosHeaderscode?stringsource?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
- Inherited from:
headers?AxiosHeaders- Inherited from:
DaytonaNotFoundError.headers
- Inherited from:
source?string- Inherited from:
DaytonaNotFoundError.source
- Inherited from:
statusCode?number- Inherited from:
DaytonaNotFoundError.statusCode
- Inherited from:
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, orundefinedwhen 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:
messagestringstatusCode?numberheaders?AxiosHeaderscode?stringsource?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
- Inherited from:
headers?AxiosHeaders- Inherited from:
DaytonaInternalServerError.headers
- Inherited from:
source?string- Inherited from:
DaytonaInternalServerError.source
- Inherited from:
statusCode?number- Inherited from:
DaytonaInternalServerError.statusCode
- Inherited from:
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, orundefinedwhen 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:
messagestringstatusCode?numberheaders?AxiosHeaderscode?stringsource?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
- Inherited from:
headers?AxiosHeaders- Inherited from:
DaytonaError.headers
- Inherited from:
source?string- Inherited from:
DaytonaError.source
- Inherited from:
statusCode?number- Inherited from:
DaytonaError.statusCode
- Inherited from:
Extends:
DaytonaError
Extended by
DaytonaAuthorizationErrorDaytonaFileAccessDeniedError
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, orundefinedwhen 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:
messagestringstatusCode?numberheaders?AxiosHeaderscode?stringsource?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
- Inherited from:
headers?AxiosHeaders- Inherited from:
DaytonaAuthenticationError.headers
- Inherited from:
source?string- Inherited from:
DaytonaAuthenticationError.source
- Inherited from:
statusCode?number- Inherited from:
DaytonaAuthenticationError.statusCode
- Inherited from:
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, orundefinedwhen 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:
messagestringstatusCode?numberheaders?AxiosHeaderscode?stringsource?string
Returns:
DaytonaGitAuthFailedError
Inherited from
DaytonaAuthenticationError.constructor
DaytonaGitBranchExistsError
The git branch already exists (code GIT_BRANCH_EXISTS).
Properties:
code?string- Inherited from:
DaytonaConflictError.code
- Inherited from:
headers?AxiosHeaders- Inherited from:
DaytonaConflictError.headers
- Inherited from:
source?string- Inherited from:
DaytonaConflictError.source
- Inherited from:
statusCode?number- Inherited from:
DaytonaConflictError.statusCode
- Inherited from:
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, orundefinedwhen 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:
messagestringstatusCode?numberheaders?AxiosHeaderscode?stringsource?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
- Inherited from:
headers?AxiosHeaders- Inherited from:
DaytonaNotFoundError.headers
- Inherited from:
source?string- Inherited from:
DaytonaNotFoundError.source
- Inherited from:
statusCode?number- Inherited from:
DaytonaNotFoundError.statusCode
- Inherited from:
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, orundefinedwhen 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:
messagestringstatusCode?numberheaders?AxiosHeaderscode?stringsource?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
- Inherited from:
headers?AxiosHeaders- Inherited from:
DaytonaConflictError.headers
- Inherited from:
source?string- Inherited from:
DaytonaConflictError.source
- Inherited from:
statusCode?number- Inherited from:
DaytonaConflictError.statusCode
- Inherited from:
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, orundefinedwhen 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:
messagestringstatusCode?numberheaders?AxiosHeaderscode?stringsource?string
Returns:
DaytonaGitDirtyWorktreeError
Inherited from
DaytonaConflictError.constructor
DaytonaGitMergeConflictError
A git merge produced conflicts (code GIT_MERGE_CONFLICT).
Properties:
code?string- Inherited from:
DaytonaConflictError.code
- Inherited from:
headers?AxiosHeaders- Inherited from:
DaytonaConflictError.headers
- Inherited from:
source?string- Inherited from:
DaytonaConflictError.source
- Inherited from:
statusCode?number- Inherited from:
DaytonaConflictError.statusCode
- Inherited from:
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, orundefinedwhen 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:
messagestringstatusCode?numberheaders?AxiosHeaderscode?stringsource?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
- Inherited from:
headers?AxiosHeaders- Inherited from:
DaytonaConflictError.headers
- Inherited from:
source?string- Inherited from:
DaytonaConflictError.source
- Inherited from:
statusCode?number- Inherited from:
DaytonaConflictError.statusCode
- Inherited from:
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, orundefinedwhen 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:
messagestringstatusCode?numberheaders?AxiosHeaderscode?stringsource?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
- Inherited from:
headers?AxiosHeaders- Inherited from:
DaytonaUnprocessableEntityError.headers
- Inherited from:
source?string- Inherited from:
DaytonaUnprocessableEntityError.source
- Inherited from:
statusCode?number- Inherited from:
DaytonaUnprocessableEntityError.statusCode
- Inherited from:
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, orundefinedwhen 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:
messagestringstatusCode?numberheaders?AxiosHeaderscode?stringsource?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
- Inherited from:
headers?AxiosHeaders- Inherited from:
DaytonaNotFoundError.headers
- Inherited from:
source?string- Inherited from:
DaytonaNotFoundError.source
- Inherited from:
statusCode?number- Inherited from:
DaytonaNotFoundError.statusCode
- Inherited from:
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, orundefinedwhen 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:
messagestringstatusCode?numberheaders?AxiosHeaderscode?stringsource?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
- Inherited from:
headers?AxiosHeaders- Inherited from:
DaytonaBadGatewayError.headers
- Inherited from:
source?string- Inherited from:
DaytonaBadGatewayError.source
- Inherited from:
statusCode?number- Inherited from:
DaytonaBadGatewayError.statusCode
- Inherited from:
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, orundefinedwhen 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:
messagestringstatusCode?numberheaders?AxiosHeaderscode?stringsource?string
Returns:
DaytonaGitTransportFailedError
Inherited from
DaytonaBadGatewayError.constructor
DaytonaGoneError
The resource existed but is permanently gone (HTTP 410).
Properties:
code?string- Inherited from:
DaytonaError.code
- Inherited from:
headers?AxiosHeaders- Inherited from:
DaytonaError.headers
- Inherited from:
source?string- Inherited from:
DaytonaError.source
- Inherited from:
statusCode?number- Inherited from:
DaytonaError.statusCode
- Inherited from:
Extends:
DaytonaError
Extended by
DaytonaSessionEndedErrorDaytonaCommandAlreadyCompletedError
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, orundefinedwhen 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:
messagestringstatusCode?numberheaders?AxiosHeaderscode?stringsource?string
Returns:
DaytonaGoneError
Inherited from
DaytonaError.constructor
DaytonaInternalServerError
A Daytona service failed unexpectedly (HTTP 500).
Properties:
code?string- Inherited from:
DaytonaError.code
- Inherited from:
headers?AxiosHeaders- Inherited from:
DaytonaError.headers
- Inherited from:
source?string- Inherited from:
DaytonaError.source
- Inherited from:
statusCode?number- Inherited from:
DaytonaError.statusCode
- Inherited from:
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, orundefinedwhen 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:
messagestringstatusCode?numberheaders?AxiosHeaderscode?stringsource?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
- Inherited from:
headers?AxiosHeaders- Inherited from:
DaytonaValidationError.headers
- Inherited from:
source?string- Inherited from:
DaytonaValidationError.source
- Inherited from:
statusCode?number- Inherited from:
DaytonaValidationError.statusCode
- Inherited from:
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, orundefinedwhen 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:
messagestringstatusCode?numberheaders?AxiosHeaderscode?stringsource?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
- Inherited from:
headers?AxiosHeaders- Inherited from:
DaytonaBadRequestError.headers
- Inherited from:
source?string- Inherited from:
DaytonaBadRequestError.source
- Inherited from:
statusCode?number- Inherited from:
DaytonaBadRequestError.statusCode
- Inherited from:
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, orundefinedwhen 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:
messagestringstatusCode?numberheaders?AxiosHeaderscode?stringsource?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
- Inherited from:
headers?AxiosHeaders- Inherited from:
DaytonaBadRequestError.headers
- Inherited from:
source?string- Inherited from:
DaytonaBadRequestError.source
- Inherited from:
statusCode?number- Inherited from:
DaytonaBadRequestError.statusCode
- Inherited from:
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, orundefinedwhen 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:
messagestringstatusCode?numberheaders?AxiosHeaderscode?stringsource?string
Returns:
DaytonaLspServerNotInitializedError
Inherited from
DaytonaBadRequestError.constructor
DaytonaNotFoundError
The requested resource does not exist (HTTP 404).
Properties:
code?string- Inherited from:
DaytonaError.code
- Inherited from:
headers?AxiosHeaders- Inherited from:
DaytonaError.headers
- Inherited from:
source?string- Inherited from:
DaytonaError.source
- Inherited from:
statusCode?number- Inherited from:
DaytonaError.statusCode
- Inherited from:
Extends:
DaytonaError
Extended by
DaytonaGitRepoNotFoundErrorDaytonaGitBranchNotFoundErrorDaytonaFileNotFoundErrorDaytonaProcessNotFoundError
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, orundefinedwhen 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:
messagestringstatusCode?numberheaders?AxiosHeaderscode?stringsource?string
Returns:
DaytonaNotFoundError
Inherited from
DaytonaError.constructor
DaytonaProcessExecutionTimeoutError
Command execution exceeded its timeout (code PROCESS_EXECUTION_TIMEOUT).
Properties:
code?string- Inherited from:
DaytonaTimeoutError.code
- Inherited from:
headers?AxiosHeaders- Inherited from:
DaytonaTimeoutError.headers
- Inherited from:
source?string- Inherited from:
DaytonaTimeoutError.source
- Inherited from:
statusCode?number- Inherited from:
DaytonaTimeoutError.statusCode
- Inherited from:
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, orundefinedwhen 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:
messagestringstatusCode?numberheaders?AxiosHeaderscode?stringsource?string
Returns:
DaytonaProcessExecutionTimeoutError
Inherited from
DaytonaTimeoutError.constructor
Methods
[hasInstance]()
static hasInstance: boolean;Parameters:
valueunknown
Returns:
boolean
Inherited from
DaytonaTimeoutError.[hasInstance]
DaytonaProcessNotFoundError
The sandbox process does not exist (code PROCESS_NOT_FOUND).
Properties:
code?string- Inherited from:
DaytonaNotFoundError.code
- Inherited from:
headers?AxiosHeaders- Inherited from:
DaytonaNotFoundError.headers
- Inherited from:
source?string- Inherited from:
DaytonaNotFoundError.source
- Inherited from:
statusCode?number- Inherited from:
DaytonaNotFoundError.statusCode
- Inherited from:
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, orundefinedwhen 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:
messagestringstatusCode?numberheaders?AxiosHeaderscode?stringsource?string
Returns:
DaytonaProcessNotFoundError
Inherited from
DaytonaNotFoundError.constructor
DaytonaRateLimitError
The caller exceeded a rate limit (HTTP 429).
Properties:
code?string- Inherited from:
DaytonaError.code
- Inherited from:
headers?AxiosHeaders- Inherited from:
DaytonaError.headers
- Inherited from:
source?string- Inherited from:
DaytonaError.source
- Inherited from:
statusCode?number- Inherited from:
DaytonaError.statusCode
- Inherited from:
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, orundefinedwhen 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:
messagestringstatusCode?numberheaders?AxiosHeaderscode?stringsource?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
- Inherited from:
headers?AxiosHeaders- Inherited from:
DaytonaServiceUnavailableError.headers
- Inherited from:
source?string- Inherited from:
DaytonaServiceUnavailableError.source
- Inherited from:
statusCode?number- Inherited from:
DaytonaServiceUnavailableError.statusCode
- Inherited from:
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, orundefinedwhen 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:
messagestringstatusCode?numberheaders?AxiosHeaderscode?stringsource?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
- Inherited from:
headers?AxiosHeaders- Inherited from:
DaytonaConflictError.headers
- Inherited from:
source?string- Inherited from:
DaytonaConflictError.source
- Inherited from:
statusCode?number- Inherited from:
DaytonaConflictError.statusCode
- Inherited from:
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, orundefinedwhen 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:
messagestringstatusCode?numberheaders?AxiosHeaderscode?stringsource?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
- Inherited from:
headers?AxiosHeaders- Inherited from:
DaytonaError.headers
- Inherited from:
source?string- Inherited from:
DaytonaError.source
- Inherited from:
statusCode?number- Inherited from:
DaytonaError.statusCode
- Inherited from:
Extends:
DaytonaError
Extended by
DaytonaA11yUnavailableErrorDaytonaRecordingFfmpegNotFoundError
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, orundefinedwhen 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:
messagestringstatusCode?numberheaders?AxiosHeaderscode?stringsource?string
Returns:
DaytonaServiceUnavailableError
Inherited from
DaytonaError.constructor
DaytonaSessionEndedError
The session has already ended (code SESSION_ENDED).
Properties:
code?string- Inherited from:
DaytonaGoneError.code
- Inherited from:
headers?AxiosHeaders- Inherited from:
DaytonaGoneError.headers
- Inherited from:
source?string- Inherited from:
DaytonaGoneError.source
- Inherited from:
statusCode?number- Inherited from:
DaytonaGoneError.statusCode
- Inherited from:
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, orundefinedwhen 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:
messagestringstatusCode?numberheaders?AxiosHeaderscode?stringsource?string
Returns:
DaytonaSessionEndedError
Inherited from
DaytonaGoneError.constructor
DaytonaTimeoutError
The operation timed out (HTTP 408, or 504 when a gateway timed out).
Properties:
code?string- Inherited from:
DaytonaError.code
- Inherited from:
headers?AxiosHeaders- Inherited from:
DaytonaError.headers
- Inherited from:
source?string- Inherited from:
DaytonaError.source
- Inherited from:
statusCode?number- Inherited from:
DaytonaError.statusCode
- Inherited from:
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
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, orundefinedwhen 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:
messagestringstatusCode?numberheaders?AxiosHeaderscode?stringsource?string
Returns:
DaytonaTimeoutError
Inherited from
DaytonaError.constructor
Methods
[hasInstance]()
static hasInstance: boolean;Parameters:
valueunknown
Returns:
boolean
DaytonaUnprocessableEntityError
The request was well-formed but semantically invalid (HTTP 422).
Properties:
code?string- Inherited from:
DaytonaError.code
- Inherited from:
headers?AxiosHeaders- Inherited from:
DaytonaError.headers
- Inherited from:
source?string- Inherited from:
DaytonaError.source
- Inherited from:
statusCode?number- Inherited from:
DaytonaError.statusCode
- Inherited from:
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, orundefinedwhen 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:
messagestringstatusCode?numberheaders?AxiosHeaderscode?stringsource?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:
stringcode?- Inherited from:
DaytonaBadRequestError.code
- Inherited from:
AxiosHeadersheaders?- Inherited from:
DaytonaBadRequestError.headers
- Inherited from:
stringsource?- Inherited from:
DaytonaBadRequestError.source
- Inherited from:
numberstatusCode?- Inherited from:
DaytonaBadRequestError.statusCode
- Inherited from:
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, orundefinedwhen 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:
messagestringstatusCode?numberheaders?AxiosHeaderscode?stringsource?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:
errorAxiosError
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:
messagestringstatusCode?numberheaders?AxiosHeaderscode?stringsource?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';