DaytonaException
Section titled “DaytonaException”Base exception for all Daytona SDK errors.
Subclasses map to specific HTTP status codes and allow callers to catch precise failure conditions without string-parsing error messages:
try {Sandbox sandbox = daytona.sandbox().get("nonexistent-id");} catch (DaytonaNotFoundException e) {// sandbox does not exist} catch (DaytonaAuthenticationException e) {// invalid API key} catch (DaytonaException e) {// other SDK error}Properties:
SOURCE_APIString - Wire-formatsourcevalues set by the translation layer when a Daytona service stamps them on the wire envelope. Anullsourcemeans the response did not carry a structured envelope (treat as opaque).SOURCE_DAEMONString -SOURCE_PROXYString -
Constructors
Section titled “Constructors”new DaytonaException()
Section titled “new DaytonaException()”public DaytonaException(String message)Creates a generic Daytona exception.
Parameters:
messageString - error description
new DaytonaException()
Section titled “new DaytonaException()”public DaytonaException(String message, Throwable cause)Creates a generic Daytona exception with a cause.
Parameters:
messageString - error descriptioncauseThrowable - root cause
new DaytonaException()
Section titled “new DaytonaException()”public DaytonaException(int statusCode, String message)Creates a Daytona exception with explicit HTTP status code.
Parameters:
statusCodeint - HTTP status codemessageString - error description
new DaytonaException()
Section titled “new DaytonaException()”public DaytonaException(int statusCode, String message, Throwable cause)Creates a Daytona exception with explicit HTTP status code and a cause.
Parameters:
statusCodeint - HTTP status codemessageString - error descriptioncauseThrowable - root cause
new DaytonaException()
Section titled “new DaytonaException()”public DaytonaException(int statusCode, String message, Map<String, String> headers)Creates a Daytona exception with HTTP status code and headers.
Parameters:
statusCodeint - HTTP status codemessageString - error descriptionheadersMap<String, String> - response headers
new DaytonaException()
Section titled “new DaytonaException()”public DaytonaException(int statusCode, String message, Map<String, String> headers, String code, String source)Creates a Daytona exception with HTTP status code, headers, error code, and source.
Parameters:
statusCodeint - HTTP status codemessageString - error descriptionheadersMap<String, String> - response headerscodeString - machine-readable error codesourceString - component that originated the error
new DaytonaException()
Section titled “new DaytonaException()”public DaytonaException(int statusCode, String message, String code, String source)Creates a Daytona exception with HTTP status code, error code, and source.
Parameters:
statusCodeint - HTTP status codemessageString - error descriptioncodeString - machine-readable error codesourceString - component that originated the error
new DaytonaException()
Section titled “new DaytonaException()”public DaytonaException(int statusCode, String message, Throwable cause, String code, String source)Creates a Daytona exception with HTTP status code, cause, error code, and source.
Parameters:
statusCodeint - HTTP status codemessageString - error descriptioncauseThrowable - root causecodeString - machine-readable error codesourceString - component that originated the error
Methods
Section titled “Methods”setPendingHeaders()
Section titled “setPendingHeaders()”public static void setPendingHeaders(Map<String, String> headers)Parameters:
headersMap<String, String> -
clearPendingHeaders()
Section titled “clearPendingHeaders()”public static void clearPendingHeaders()getStatusCode()
Section titled “getStatusCode()”public int getStatusCode()Returns the HTTP status code, or 0 if not applicable.
Returns:
int-
getHeaders()
Section titled “getHeaders()”public Map<String, String> getHeaders()Returns the HTTP response headers, or an empty map if not available.
Returns:
Map\<String, String\>-
getCode()
Section titled “getCode()”public String getCode()Returns the machine-readable error code, or null if not available.
Returns:
String-
getSource()
Section titled “getSource()”public String getSource()Returns the originating service from the wire envelope. null
for SDK-side errors and for responses that don’t carry the envelope.
Otherwise one of #SOURCE_API, #SOURCE_DAEMON or
#SOURCE_PROXY.
Returns:
String-
DaytonaA11yUnavailableException
Section titled “DaytonaA11yUnavailableException”The accessibility (AT-SPI) bus is not reachable.
Subclass of DaytonaServiceUnavailableException.
Constructors
Section titled “Constructors”new DaytonaA11yUnavailableException()
Section titled “new DaytonaA11yUnavailableException()”public DaytonaA11yUnavailableException(String message)Parameters:
messageString -
new DaytonaA11yUnavailableException()
Section titled “new DaytonaA11yUnavailableException()”public DaytonaA11yUnavailableException(String message, Throwable cause)Parameters:
messageString -causeThrowable -
new DaytonaA11yUnavailableException()
Section titled “new DaytonaA11yUnavailableException()”public DaytonaA11yUnavailableException(String message, String code, String source)Parameters:
messageString -codeString -sourceString -
new DaytonaA11yUnavailableException()
Section titled “new DaytonaA11yUnavailableException()”public DaytonaA11yUnavailableException(String message, Throwable cause, String code, String source)Parameters:
messageString -causeThrowable -codeString -sourceString -
DaytonaAuthenticationException
Section titled “DaytonaAuthenticationException”Raised when API credentials are missing or invalid (HTTP 401).
try {daytona.sandbox().create();} catch (DaytonaAuthenticationException e) {System.err.println("Invalid or missing API key");}Properties:
STATUS_CODEint - HTTP status code carried by every instance of this class.
Constructors
Section titled “Constructors”new DaytonaAuthenticationException()
Section titled “new DaytonaAuthenticationException()”public DaytonaAuthenticationException(String message)Creates an authentication exception.
Parameters:
messageString - error description from the API
new DaytonaAuthenticationException()
Section titled “new DaytonaAuthenticationException()”public DaytonaAuthenticationException(String message, Throwable cause)Parameters:
messageString - error description from the APIcauseThrowable - root cause
new DaytonaAuthenticationException()
Section titled “new DaytonaAuthenticationException()”public DaytonaAuthenticationException(String message, String code, String source)Parameters:
messageString -codeString -sourceString -
new DaytonaAuthenticationException()
Section titled “new DaytonaAuthenticationException()”public DaytonaAuthenticationException(String message, Throwable cause, String code, String source)Parameters:
messageString -causeThrowable -codeString -sourceString -
DaytonaBadGatewayException
Section titled “DaytonaBadGatewayException”Raised for HTTP 502 — an upstream dependency rejected or dropped the request.
Properties:
STATUS_CODEint -
Constructors
Section titled “Constructors”new DaytonaBadGatewayException()
Section titled “new DaytonaBadGatewayException()”public DaytonaBadGatewayException(String message)Parameters:
messageString -
new DaytonaBadGatewayException()
Section titled “new DaytonaBadGatewayException()”public DaytonaBadGatewayException(String message, Throwable cause)Parameters:
messageString -causeThrowable -
new DaytonaBadGatewayException()
Section titled “new DaytonaBadGatewayException()”public DaytonaBadGatewayException(String message, String code, String source)Parameters:
messageString -codeString -sourceString -
new DaytonaBadGatewayException()
Section titled “new DaytonaBadGatewayException()”public DaytonaBadGatewayException(String message, Throwable cause, String code, String source)Parameters:
messageString -causeThrowable -codeString -sourceString -
DaytonaBadRequestException
Section titled “DaytonaBadRequestException”Raised when the request is malformed or contains invalid parameters (HTTP 400).
try {daytona.sandbox().create(params);} catch (DaytonaBadRequestException e) {System.err.println("Invalid request parameters: " + e.getMessage());}Properties:
STATUS_CODEint - HTTP status code carried by every instance of this class.
Constructors
Section titled “Constructors”new DaytonaBadRequestException()
Section titled “new DaytonaBadRequestException()”public DaytonaBadRequestException(String message)Creates a bad-request exception.
Parameters:
messageString - error description from the API
new DaytonaBadRequestException()
Section titled “new DaytonaBadRequestException()”public DaytonaBadRequestException(String message, Throwable cause)Parameters:
messageString - error description from the APIcauseThrowable - root cause
new DaytonaBadRequestException()
Section titled “new DaytonaBadRequestException()”public DaytonaBadRequestException(String message, String code, String source)Parameters:
messageString -codeString -sourceString -
new DaytonaBadRequestException()
Section titled “new DaytonaBadRequestException()”public DaytonaBadRequestException(String message, Throwable cause, String code, String source)Parameters:
messageString -causeThrowable -codeString -sourceString -
DaytonaCommandAlreadyCompletedException
Section titled “DaytonaCommandAlreadyCompletedException”The shell command already finished.
Subclass of DaytonaGoneException.
Constructors
Section titled “Constructors”new DaytonaCommandAlreadyCompletedException()
Section titled “new DaytonaCommandAlreadyCompletedException()”public DaytonaCommandAlreadyCompletedException(String message)Parameters:
messageString -
new DaytonaCommandAlreadyCompletedException()
Section titled “new DaytonaCommandAlreadyCompletedException()”public DaytonaCommandAlreadyCompletedException(String message, Throwable cause)Parameters:
messageString -causeThrowable -
new DaytonaCommandAlreadyCompletedException()
Section titled “new DaytonaCommandAlreadyCompletedException()”public DaytonaCommandAlreadyCompletedException(String message, String code, String source)Parameters:
messageString -codeString -sourceString -
new DaytonaCommandAlreadyCompletedException()
Section titled “new DaytonaCommandAlreadyCompletedException()”public DaytonaCommandAlreadyCompletedException(String message, Throwable cause, String code, String source)Parameters:
messageString -causeThrowable -codeString -sourceString -
DaytonaConflictException
Section titled “DaytonaConflictException”Raised when an operation conflicts with the current state (HTTP 409).
Common causes: creating a resource with a name that already exists, or performing an operation incompatible with the resource’s current state.
try {daytona.snapshot().create(params);} catch (DaytonaConflictException e) {System.err.println("A snapshot with this name already exists");}Properties:
STATUS_CODEint - HTTP status code carried by every instance of this class.
Constructors
Section titled “Constructors”new DaytonaConflictException()
Section titled “new DaytonaConflictException()”public DaytonaConflictException(String message)Creates a conflict exception.
Parameters:
messageString - error description from the API
new DaytonaConflictException()
Section titled “new DaytonaConflictException()”public DaytonaConflictException(String message, Throwable cause)Parameters:
messageString - error description from the APIcauseThrowable - root cause
new DaytonaConflictException()
Section titled “new DaytonaConflictException()”public DaytonaConflictException(String message, String code, String source)Parameters:
messageString -codeString -sourceString -
new DaytonaConflictException()
Section titled “new DaytonaConflictException()”public DaytonaConflictException(String message, Throwable cause, String code, String source)Parameters:
messageString -causeThrowable -codeString -sourceString -
DaytonaConnectionException
Section titled “DaytonaConnectionException”Raised for network-level connection failures (no HTTP response received).
Raised when the SDK cannot reach the Daytona API due to network issues such as DNS failure, connection refused, or TLS errors.
try {daytona.sandbox().create();} catch (DaytonaConnectionException e) {System.err.println("Cannot reach Daytona API: " + e.getMessage());}Constructors
Section titled “Constructors”new DaytonaConnectionException()
Section titled “new DaytonaConnectionException()”public DaytonaConnectionException(String message)Creates a connection exception.
Parameters:
messageString - connection failure description
new DaytonaConnectionException()
Section titled “new DaytonaConnectionException()”public DaytonaConnectionException(String message, Throwable cause)Creates a connection exception with a cause.
Parameters:
messageString - connection failure descriptioncauseThrowable - root cause
new DaytonaConnectionException()
Section titled “new DaytonaConnectionException()”public DaytonaConnectionException(String message, String code, String source)Parameters:
messageString -codeString -sourceString -
new DaytonaConnectionException()
Section titled “new DaytonaConnectionException()”public DaytonaConnectionException(String message, Throwable cause, String code, String source)Parameters:
messageString -causeThrowable -codeString -sourceString -
DaytonaConnectionTimeoutException
Section titled “DaytonaConnectionTimeoutException”Raised when the transport layer times out connecting to or reading from a
Daytona service. Subclass of DaytonaConnectionException so callers
can catch the broader “connection failed” category.
Constructors
Section titled “Constructors”new DaytonaConnectionTimeoutException()
Section titled “new DaytonaConnectionTimeoutException()”public DaytonaConnectionTimeoutException(String message)Parameters:
messageString -
new DaytonaConnectionTimeoutException()
Section titled “new DaytonaConnectionTimeoutException()”public DaytonaConnectionTimeoutException(String message, Throwable cause)Parameters:
messageString -causeThrowable -
new DaytonaConnectionTimeoutException()
Section titled “new DaytonaConnectionTimeoutException()”public DaytonaConnectionTimeoutException(String message, String code, String source)Parameters:
messageString -codeString -sourceString -
new DaytonaConnectionTimeoutException()
Section titled “new DaytonaConnectionTimeoutException()”public DaytonaConnectionTimeoutException(String message, Throwable cause, String code, String source)Parameters:
messageString -causeThrowable -codeString -sourceString -
DaytonaFileAccessDeniedException
Section titled “DaytonaFileAccessDeniedException”Insufficient permissions for the filesystem operation.
Subclass of DaytonaForbiddenException.
Constructors
Section titled “Constructors”new DaytonaFileAccessDeniedException()
Section titled “new DaytonaFileAccessDeniedException()”public DaytonaFileAccessDeniedException(String message)Parameters:
messageString -
new DaytonaFileAccessDeniedException()
Section titled “new DaytonaFileAccessDeniedException()”public DaytonaFileAccessDeniedException(String message, Throwable cause)Parameters:
messageString -causeThrowable -
new DaytonaFileAccessDeniedException()
Section titled “new DaytonaFileAccessDeniedException()”public DaytonaFileAccessDeniedException(String message, String code, String source)Parameters:
messageString -codeString -sourceString -
new DaytonaFileAccessDeniedException()
Section titled “new DaytonaFileAccessDeniedException()”public DaytonaFileAccessDeniedException(String message, Throwable cause, String code, String source)Parameters:
messageString -causeThrowable -codeString -sourceString -
DaytonaFileNotFoundException
Section titled “DaytonaFileNotFoundException”Filesystem entry was not found.
Subclass of DaytonaNotFoundException.
Constructors
Section titled “Constructors”new DaytonaFileNotFoundException()
Section titled “new DaytonaFileNotFoundException()”public DaytonaFileNotFoundException(String message)Parameters:
messageString -
new DaytonaFileNotFoundException()
Section titled “new DaytonaFileNotFoundException()”public DaytonaFileNotFoundException(String message, Throwable cause)Parameters:
messageString -causeThrowable -
new DaytonaFileNotFoundException()
Section titled “new DaytonaFileNotFoundException()”public DaytonaFileNotFoundException(String message, String code, String source)Parameters:
messageString -codeString -sourceString -
new DaytonaFileNotFoundException()
Section titled “new DaytonaFileNotFoundException()”public DaytonaFileNotFoundException(String message, Throwable cause, String code, String source)Parameters:
messageString -causeThrowable -codeString -sourceString -
DaytonaFileReadFailedException
Section titled “DaytonaFileReadFailedException”Daemon could not read the requested file (code FILE_READ_FAILED, HTTP 500).
Subclass of DaytonaInternalServerException.
Constructors
Section titled “Constructors”new DaytonaFileReadFailedException()
Section titled “new DaytonaFileReadFailedException()”public DaytonaFileReadFailedException(String message)Parameters:
messageString -
new DaytonaFileReadFailedException()
Section titled “new DaytonaFileReadFailedException()”public DaytonaFileReadFailedException(String message, Throwable cause)Parameters:
messageString -causeThrowable -
new DaytonaFileReadFailedException()
Section titled “new DaytonaFileReadFailedException()”public DaytonaFileReadFailedException(String message, String code, String source)Parameters:
messageString -codeString -sourceString -
new DaytonaFileReadFailedException()
Section titled “new DaytonaFileReadFailedException()”public DaytonaFileReadFailedException(String message, Throwable cause, String code, String source)Parameters:
messageString -causeThrowable -codeString -sourceString -
DaytonaForbiddenException
Section titled “DaytonaForbiddenException”Raised when the authenticated user lacks permission to perform an operation (HTTP 403).
try {daytona.sandbox().delete(sandboxId);} catch (DaytonaForbiddenException e) {System.err.println("Not authorized to delete this sandbox");}Properties:
STATUS_CODEint - HTTP status code carried by every instance of this class.
Constructors
Section titled “Constructors”new DaytonaForbiddenException()
Section titled “new DaytonaForbiddenException()”public DaytonaForbiddenException(String message)Creates a forbidden exception.
Parameters:
messageString - error description from the API
new DaytonaForbiddenException()
Section titled “new DaytonaForbiddenException()”public DaytonaForbiddenException(String message, Throwable cause)Parameters:
messageString - error description from the APIcauseThrowable - root cause
new DaytonaForbiddenException()
Section titled “new DaytonaForbiddenException()”public DaytonaForbiddenException(String message, String code, String source)Parameters:
messageString -codeString -sourceString -
new DaytonaForbiddenException()
Section titled “new DaytonaForbiddenException()”public DaytonaForbiddenException(String message, Throwable cause, String code, String source)Parameters:
messageString -causeThrowable -codeString -sourceString -
DaytonaGitAuthFailedException
Section titled “DaytonaGitAuthFailedException”Git authentication credentials were rejected by the remote.
Subclass of DaytonaAuthenticationException.
Constructors
Section titled “Constructors”new DaytonaGitAuthFailedException()
Section titled “new DaytonaGitAuthFailedException()”public DaytonaGitAuthFailedException(String message)Parameters:
messageString -
new DaytonaGitAuthFailedException()
Section titled “new DaytonaGitAuthFailedException()”public DaytonaGitAuthFailedException(String message, Throwable cause)Parameters:
messageString -causeThrowable -
new DaytonaGitAuthFailedException()
Section titled “new DaytonaGitAuthFailedException()”public DaytonaGitAuthFailedException(String message, String code, String source)Parameters:
messageString -codeString -sourceString -
new DaytonaGitAuthFailedException()
Section titled “new DaytonaGitAuthFailedException()”public DaytonaGitAuthFailedException(String message, Throwable cause, String code, String source)Parameters:
messageString -causeThrowable -codeString -sourceString -
DaytonaGitBranchExistsException
Section titled “DaytonaGitBranchExistsException”A git branch with this name already exists.
Subclass of DaytonaConflictException.
Constructors
Section titled “Constructors”new DaytonaGitBranchExistsException()
Section titled “new DaytonaGitBranchExistsException()”public DaytonaGitBranchExistsException(String message)Parameters:
messageString -
new DaytonaGitBranchExistsException()
Section titled “new DaytonaGitBranchExistsException()”public DaytonaGitBranchExistsException(String message, Throwable cause)Parameters:
messageString -causeThrowable -
new DaytonaGitBranchExistsException()
Section titled “new DaytonaGitBranchExistsException()”public DaytonaGitBranchExistsException(String message, String code, String source)Parameters:
messageString -codeString -sourceString -
new DaytonaGitBranchExistsException()
Section titled “new DaytonaGitBranchExistsException()”public DaytonaGitBranchExistsException(String message, Throwable cause, String code, String source)Parameters:
messageString -causeThrowable -codeString -sourceString -
DaytonaGitBranchNotFoundException
Section titled “DaytonaGitBranchNotFoundException”The requested git branch does not exist.
Subclass of DaytonaNotFoundException.
Constructors
Section titled “Constructors”new DaytonaGitBranchNotFoundException()
Section titled “new DaytonaGitBranchNotFoundException()”public DaytonaGitBranchNotFoundException(String message)Parameters:
messageString -
new DaytonaGitBranchNotFoundException()
Section titled “new DaytonaGitBranchNotFoundException()”public DaytonaGitBranchNotFoundException(String message, Throwable cause)Parameters:
messageString -causeThrowable -
new DaytonaGitBranchNotFoundException()
Section titled “new DaytonaGitBranchNotFoundException()”public DaytonaGitBranchNotFoundException(String message, String code, String source)Parameters:
messageString -codeString -sourceString -
new DaytonaGitBranchNotFoundException()
Section titled “new DaytonaGitBranchNotFoundException()”public DaytonaGitBranchNotFoundException(String message, Throwable cause, String code, String source)Parameters:
messageString -causeThrowable -codeString -sourceString -
DaytonaGitDirtyWorktreeException
Section titled “DaytonaGitDirtyWorktreeException”Worktree has uncommitted changes.
Subclass of DaytonaConflictException.
Constructors
Section titled “Constructors”new DaytonaGitDirtyWorktreeException()
Section titled “new DaytonaGitDirtyWorktreeException()”public DaytonaGitDirtyWorktreeException(String message)Parameters:
messageString -
new DaytonaGitDirtyWorktreeException()
Section titled “new DaytonaGitDirtyWorktreeException()”public DaytonaGitDirtyWorktreeException(String message, Throwable cause)Parameters:
messageString -causeThrowable -
new DaytonaGitDirtyWorktreeException()
Section titled “new DaytonaGitDirtyWorktreeException()”public DaytonaGitDirtyWorktreeException(String message, String code, String source)Parameters:
messageString -codeString -sourceString -
new DaytonaGitDirtyWorktreeException()
Section titled “new DaytonaGitDirtyWorktreeException()”public DaytonaGitDirtyWorktreeException(String message, Throwable cause, String code, String source)Parameters:
messageString -causeThrowable -codeString -sourceString -
DaytonaGitMergeConflictException
Section titled “DaytonaGitMergeConflictException”Git merge has conflicts that need manual resolution.
Subclass of DaytonaConflictException.
Constructors
Section titled “Constructors”new DaytonaGitMergeConflictException()
Section titled “new DaytonaGitMergeConflictException()”public DaytonaGitMergeConflictException(String message)Parameters:
messageString -
new DaytonaGitMergeConflictException()
Section titled “new DaytonaGitMergeConflictException()”public DaytonaGitMergeConflictException(String message, Throwable cause)Parameters:
messageString -causeThrowable -
new DaytonaGitMergeConflictException()
Section titled “new DaytonaGitMergeConflictException()”public DaytonaGitMergeConflictException(String message, String code, String source)Parameters:
messageString -codeString -sourceString -
new DaytonaGitMergeConflictException()
Section titled “new DaytonaGitMergeConflictException()”public DaytonaGitMergeConflictException(String message, Throwable cause, String code, String source)Parameters:
messageString -causeThrowable -codeString -sourceString -
DaytonaGitPushRejectedException
Section titled “DaytonaGitPushRejectedException”Git push was rejected (non-fast-forward / stale ref).
Subclass of DaytonaConflictException.
Constructors
Section titled “Constructors”new DaytonaGitPushRejectedException()
Section titled “new DaytonaGitPushRejectedException()”public DaytonaGitPushRejectedException(String message)Parameters:
messageString -
new DaytonaGitPushRejectedException()
Section titled “new DaytonaGitPushRejectedException()”public DaytonaGitPushRejectedException(String message, Throwable cause)Parameters:
messageString -causeThrowable -
new DaytonaGitPushRejectedException()
Section titled “new DaytonaGitPushRejectedException()”public DaytonaGitPushRejectedException(String message, String code, String source)Parameters:
messageString -codeString -sourceString -
new DaytonaGitPushRejectedException()
Section titled “new DaytonaGitPushRejectedException()”public DaytonaGitPushRejectedException(String message, Throwable cause, String code, String source)Parameters:
messageString -causeThrowable -codeString -sourceString -
DaytonaGitRemoteRejectedException
Section titled “DaytonaGitRemoteRejectedException”The git remote rejected the operation (hooks, branch protection or quota).
Subclass of DaytonaUnprocessableEntityException.
Constructors
Section titled “Constructors”new DaytonaGitRemoteRejectedException()
Section titled “new DaytonaGitRemoteRejectedException()”public DaytonaGitRemoteRejectedException(String message)Parameters:
messageString -
new DaytonaGitRemoteRejectedException()
Section titled “new DaytonaGitRemoteRejectedException()”public DaytonaGitRemoteRejectedException(String message, Throwable cause)Parameters:
messageString -causeThrowable -
new DaytonaGitRemoteRejectedException()
Section titled “new DaytonaGitRemoteRejectedException()”public DaytonaGitRemoteRejectedException(String message, String code, String source)Parameters:
messageString -codeString -sourceString -
new DaytonaGitRemoteRejectedException()
Section titled “new DaytonaGitRemoteRejectedException()”public DaytonaGitRemoteRejectedException(String message, Throwable cause, String code, String source)Parameters:
messageString -causeThrowable -codeString -sourceString -
DaytonaGitRepoNotFoundException
Section titled “DaytonaGitRepoNotFoundException”The requested git repository does not exist.
Subclass of DaytonaNotFoundException.
Constructors
Section titled “Constructors”new DaytonaGitRepoNotFoundException()
Section titled “new DaytonaGitRepoNotFoundException()”public DaytonaGitRepoNotFoundException(String message)Parameters:
messageString -
new DaytonaGitRepoNotFoundException()
Section titled “new DaytonaGitRepoNotFoundException()”public DaytonaGitRepoNotFoundException(String message, Throwable cause)Parameters:
messageString -causeThrowable -
new DaytonaGitRepoNotFoundException()
Section titled “new DaytonaGitRepoNotFoundException()”public DaytonaGitRepoNotFoundException(String message, String code, String source)Parameters:
messageString -codeString -sourceString -
new DaytonaGitRepoNotFoundException()
Section titled “new DaytonaGitRepoNotFoundException()”public DaytonaGitRepoNotFoundException(String message, Throwable cause, String code, String source)Parameters:
messageString -causeThrowable -codeString -sourceString -
DaytonaGitTransportFailedException
Section titled “DaytonaGitTransportFailedException”The git remote was unreachable (DNS, TLS, connection or timeout failure).
Subclass of DaytonaBadGatewayException.
Constructors
Section titled “Constructors”new DaytonaGitTransportFailedException()
Section titled “new DaytonaGitTransportFailedException()”public DaytonaGitTransportFailedException(String message)Parameters:
messageString -
new DaytonaGitTransportFailedException()
Section titled “new DaytonaGitTransportFailedException()”public DaytonaGitTransportFailedException(String message, Throwable cause)Parameters:
messageString -causeThrowable -
new DaytonaGitTransportFailedException()
Section titled “new DaytonaGitTransportFailedException()”public DaytonaGitTransportFailedException(String message, String code, String source)Parameters:
messageString -codeString -sourceString -
new DaytonaGitTransportFailedException()
Section titled “new DaytonaGitTransportFailedException()”public DaytonaGitTransportFailedException(String message, Throwable cause, String code, String source)Parameters:
messageString -causeThrowable -codeString -sourceString -
DaytonaGoneException
Section titled “DaytonaGoneException”Raised for HTTP 410 — the target resource is permanently gone.
Properties:
STATUS_CODEint -
Constructors
Section titled “Constructors”new DaytonaGoneException()
Section titled “new DaytonaGoneException()”public DaytonaGoneException(String message)Parameters:
messageString -
new DaytonaGoneException()
Section titled “new DaytonaGoneException()”public DaytonaGoneException(String message, Throwable cause)Parameters:
messageString -causeThrowable -
new DaytonaGoneException()
Section titled “new DaytonaGoneException()”public DaytonaGoneException(String message, String code, String source)Parameters:
messageString -codeString -sourceString -
new DaytonaGoneException()
Section titled “new DaytonaGoneException()”public DaytonaGoneException(String message, Throwable cause, String code, String source)Parameters:
messageString -causeThrowable -codeString -sourceString -
DaytonaInternalServerException
Section titled “DaytonaInternalServerException”Raised for HTTP 500 — server-side bug or unhandled condition.
Properties:
STATUS_CODEint -
Constructors
Section titled “Constructors”new DaytonaInternalServerException()
Section titled “new DaytonaInternalServerException()”public DaytonaInternalServerException(String message)Parameters:
messageString -
new DaytonaInternalServerException()
Section titled “new DaytonaInternalServerException()”public DaytonaInternalServerException(String message, Throwable cause)Parameters:
messageString -causeThrowable -
new DaytonaInternalServerException()
Section titled “new DaytonaInternalServerException()”public DaytonaInternalServerException(String message, String code, String source)Parameters:
messageString -codeString -sourceString -
new DaytonaInternalServerException()
Section titled “new DaytonaInternalServerException()”public DaytonaInternalServerException(String message, Throwable cause, String code, String source)Parameters:
messageString -causeThrowable -codeString -sourceString -
DaytonaInvalidFilePathException
Section titled “DaytonaInvalidFilePathException”Supplied file path was rejected by the daemon (code INVALID_FILE_PATH, HTTP 400).
Subclass of DaytonaBadRequestException.
Constructors
Section titled “Constructors”new DaytonaInvalidFilePathException()
Section titled “new DaytonaInvalidFilePathException()”public DaytonaInvalidFilePathException(String message)Parameters:
messageString -
new DaytonaInvalidFilePathException()
Section titled “new DaytonaInvalidFilePathException()”public DaytonaInvalidFilePathException(String message, Throwable cause)Parameters:
messageString -causeThrowable -
new DaytonaInvalidFilePathException()
Section titled “new DaytonaInvalidFilePathException()”public DaytonaInvalidFilePathException(String message, String code, String source)Parameters:
messageString -codeString -sourceString -
new DaytonaInvalidFilePathException()
Section titled “new DaytonaInvalidFilePathException()”public DaytonaInvalidFilePathException(String message, Throwable cause, String code, String source)Parameters:
messageString -causeThrowable -codeString -sourceString -
DaytonaLspServerNotInitializedException
Section titled “DaytonaLspServerNotInitializedException”LSP server must be started via /lsp/start first.
Subclass of DaytonaBadRequestException.
Constructors
Section titled “Constructors”new DaytonaLspServerNotInitializedException()
Section titled “new DaytonaLspServerNotInitializedException()”public DaytonaLspServerNotInitializedException(String message)Parameters:
messageString -
new DaytonaLspServerNotInitializedException()
Section titled “new DaytonaLspServerNotInitializedException()”public DaytonaLspServerNotInitializedException(String message, Throwable cause)Parameters:
messageString -causeThrowable -
new DaytonaLspServerNotInitializedException()
Section titled “new DaytonaLspServerNotInitializedException()”public DaytonaLspServerNotInitializedException(String message, String code, String source)Parameters:
messageString -codeString -sourceString -
new DaytonaLspServerNotInitializedException()
Section titled “new DaytonaLspServerNotInitializedException()”public DaytonaLspServerNotInitializedException(String message, Throwable cause, String code, String source)Parameters:
messageString -causeThrowable -codeString -sourceString -
DaytonaNotFoundException
Section titled “DaytonaNotFoundException”Raised when a requested resource does not exist (HTTP 404).
Properties:
STATUS_CODEint - HTTP status code carried by every instance of this class.
Constructors
Section titled “Constructors”new DaytonaNotFoundException()
Section titled “new DaytonaNotFoundException()”public DaytonaNotFoundException(String message)Creates a not-found exception.
Parameters:
messageString - error description from the API
new DaytonaNotFoundException()
Section titled “new DaytonaNotFoundException()”public DaytonaNotFoundException(String message, Throwable cause)Parameters:
messageString - error description from the APIcauseThrowable - root cause
new DaytonaNotFoundException()
Section titled “new DaytonaNotFoundException()”public DaytonaNotFoundException(String message, String code, String source)Parameters:
messageString -codeString -sourceString -
new DaytonaNotFoundException()
Section titled “new DaytonaNotFoundException()”public DaytonaNotFoundException(String message, Throwable cause, String code, String source)Parameters:
messageString -causeThrowable -codeString -sourceString -
DaytonaProcessExecutionTimeoutException
Section titled “DaytonaProcessExecutionTimeoutException”A process exceeded its configured execution timeout.
Subclass of DaytonaTimeoutException.
Constructors
Section titled “Constructors”new DaytonaProcessExecutionTimeoutException()
Section titled “new DaytonaProcessExecutionTimeoutException()”public DaytonaProcessExecutionTimeoutException(String message)Parameters:
messageString -
new DaytonaProcessExecutionTimeoutException()
Section titled “new DaytonaProcessExecutionTimeoutException()”public DaytonaProcessExecutionTimeoutException(String message, Throwable cause)Parameters:
messageString -causeThrowable -
new DaytonaProcessExecutionTimeoutException()
Section titled “new DaytonaProcessExecutionTimeoutException()”public DaytonaProcessExecutionTimeoutException(int statusCode, String message, String code, String source)Parameters:
statusCodeint -messageString -codeString -sourceString -
new DaytonaProcessExecutionTimeoutException()
Section titled “new DaytonaProcessExecutionTimeoutException()”public DaytonaProcessExecutionTimeoutException(int statusCode, String message, Throwable cause, String code, String source)Parameters:
statusCodeint -messageString -causeThrowable -codeString -sourceString -
new DaytonaProcessExecutionTimeoutException()
Section titled “new DaytonaProcessExecutionTimeoutException()”public DaytonaProcessExecutionTimeoutException(String message, String code, String source)Parameters:
messageString -codeString -sourceString -
new DaytonaProcessExecutionTimeoutException()
Section titled “new DaytonaProcessExecutionTimeoutException()”public DaytonaProcessExecutionTimeoutException(String message, Throwable cause, String code, String source)Parameters:
messageString -causeThrowable -codeString -sourceString -
DaytonaProcessNotFoundException
Section titled “DaytonaProcessNotFoundException”The requested process is not running.
Subclass of DaytonaNotFoundException.
Constructors
Section titled “Constructors”new DaytonaProcessNotFoundException()
Section titled “new DaytonaProcessNotFoundException()”public DaytonaProcessNotFoundException(String message)Parameters:
messageString -
new DaytonaProcessNotFoundException()
Section titled “new DaytonaProcessNotFoundException()”public DaytonaProcessNotFoundException(String message, Throwable cause)Parameters:
messageString -causeThrowable -
new DaytonaProcessNotFoundException()
Section titled “new DaytonaProcessNotFoundException()”public DaytonaProcessNotFoundException(String message, String code, String source)Parameters:
messageString -codeString -sourceString -
new DaytonaProcessNotFoundException()
Section titled “new DaytonaProcessNotFoundException()”public DaytonaProcessNotFoundException(String message, Throwable cause, String code, String source)Parameters:
messageString -causeThrowable -codeString -sourceString -
DaytonaRateLimitException
Section titled “DaytonaRateLimitException”Raised when API rate limits are exceeded (HTTP 429).
Properties:
STATUS_CODEint - HTTP status code carried by every instance of this class.
Constructors
Section titled “Constructors”new DaytonaRateLimitException()
Section titled “new DaytonaRateLimitException()”public DaytonaRateLimitException(String message)Creates a rate-limit exception.
Parameters:
messageString - error description from the API
new DaytonaRateLimitException()
Section titled “new DaytonaRateLimitException()”public DaytonaRateLimitException(String message, Throwable cause)Parameters:
messageString - error description from the APIcauseThrowable - root cause
new DaytonaRateLimitException()
Section titled “new DaytonaRateLimitException()”public DaytonaRateLimitException(String message, String code, String source)Parameters:
messageString -codeString -sourceString -
new DaytonaRateLimitException()
Section titled “new DaytonaRateLimitException()”public DaytonaRateLimitException(String message, Throwable cause, String code, String source)Parameters:
messageString -causeThrowable -codeString -sourceString -
DaytonaRecordingFfmpegNotFoundException
Section titled “DaytonaRecordingFfmpegNotFoundException”ffmpeg binary is not installed; required for recording.
Subclass of DaytonaServiceUnavailableException.
Constructors
Section titled “Constructors”new DaytonaRecordingFfmpegNotFoundException()
Section titled “new DaytonaRecordingFfmpegNotFoundException()”public DaytonaRecordingFfmpegNotFoundException(String message)Parameters:
messageString -
new DaytonaRecordingFfmpegNotFoundException()
Section titled “new DaytonaRecordingFfmpegNotFoundException()”public DaytonaRecordingFfmpegNotFoundException(String message, Throwable cause)Parameters:
messageString -causeThrowable -
new DaytonaRecordingFfmpegNotFoundException()
Section titled “new DaytonaRecordingFfmpegNotFoundException()”public DaytonaRecordingFfmpegNotFoundException(String message, String code, String source)Parameters:
messageString -codeString -sourceString -
new DaytonaRecordingFfmpegNotFoundException()
Section titled “new DaytonaRecordingFfmpegNotFoundException()”public DaytonaRecordingFfmpegNotFoundException(String message, Throwable cause, String code, String source)Parameters:
messageString -causeThrowable -codeString -sourceString -
DaytonaRecordingStillActiveException
Section titled “DaytonaRecordingStillActiveException”The recording is still running; stop it first.
Subclass of DaytonaConflictException.
Constructors
Section titled “Constructors”new DaytonaRecordingStillActiveException()
Section titled “new DaytonaRecordingStillActiveException()”public DaytonaRecordingStillActiveException(String message)Parameters:
messageString -
new DaytonaRecordingStillActiveException()
Section titled “new DaytonaRecordingStillActiveException()”public DaytonaRecordingStillActiveException(String message, Throwable cause)Parameters:
messageString -causeThrowable -
new DaytonaRecordingStillActiveException()
Section titled “new DaytonaRecordingStillActiveException()”public DaytonaRecordingStillActiveException(String message, String code, String source)Parameters:
messageString -codeString -sourceString -
new DaytonaRecordingStillActiveException()
Section titled “new DaytonaRecordingStillActiveException()”public DaytonaRecordingStillActiveException(String message, Throwable cause, String code, String source)Parameters:
messageString -causeThrowable -codeString -sourceString -
DaytonaServerException
Section titled “DaytonaServerException”Raised for unexpected server-side failures (HTTP 5xx).
These are typically transient and safe to retry with exponential backoff.
try {daytona.sandbox().create();} catch (DaytonaServerException e) {System.err.println("Server error (status " + e.getStatusCode() + "), retry later");}Constructors
Section titled “Constructors”new DaytonaServerException()
Section titled “new DaytonaServerException()”public DaytonaServerException(int statusCode, String message)Creates a server exception.
Parameters:
statusCodeint - HTTP status code (typically 5xx)messageString - error description from the API
new DaytonaServerException()
Section titled “new DaytonaServerException()”public DaytonaServerException(int statusCode, String message, Throwable cause)Parameters:
statusCodeint - HTTP status code (typically 5xx)messageString - error description from the APIcauseThrowable - root cause
new DaytonaServerException()
Section titled “new DaytonaServerException()”public DaytonaServerException(int statusCode, String message, String code, String source)Parameters:
statusCodeint -messageString -codeString -sourceString -
new DaytonaServerException()
Section titled “new DaytonaServerException()”public DaytonaServerException(int statusCode, String message, Throwable cause, String code, String source)Parameters:
statusCodeint -messageString -causeThrowable -codeString -sourceString -
DaytonaServiceUnavailableException
Section titled “DaytonaServiceUnavailableException”Raised for HTTP 503 — the service is temporarily refusing traffic.
Properties:
STATUS_CODEint -
Constructors
Section titled “Constructors”new DaytonaServiceUnavailableException()
Section titled “new DaytonaServiceUnavailableException()”public DaytonaServiceUnavailableException(String message)Parameters:
messageString -
new DaytonaServiceUnavailableException()
Section titled “new DaytonaServiceUnavailableException()”public DaytonaServiceUnavailableException(String message, Throwable cause)Parameters:
messageString -causeThrowable -
new DaytonaServiceUnavailableException()
Section titled “new DaytonaServiceUnavailableException()”public DaytonaServiceUnavailableException(String message, String code, String source)Parameters:
messageString -codeString -sourceString -
new DaytonaServiceUnavailableException()
Section titled “new DaytonaServiceUnavailableException()”public DaytonaServiceUnavailableException(String message, Throwable cause, String code, String source)Parameters:
messageString -causeThrowable -codeString -sourceString -
DaytonaSessionEndedException
Section titled “DaytonaSessionEndedException”The shell session has ended.
Subclass of DaytonaGoneException.
Constructors
Section titled “Constructors”new DaytonaSessionEndedException()
Section titled “new DaytonaSessionEndedException()”public DaytonaSessionEndedException(String message)Parameters:
messageString -
new DaytonaSessionEndedException()
Section titled “new DaytonaSessionEndedException()”public DaytonaSessionEndedException(String message, Throwable cause)Parameters:
messageString -causeThrowable -
new DaytonaSessionEndedException()
Section titled “new DaytonaSessionEndedException()”public DaytonaSessionEndedException(String message, String code, String source)Parameters:
messageString -codeString -sourceString -
new DaytonaSessionEndedException()
Section titled “new DaytonaSessionEndedException()”public DaytonaSessionEndedException(String message, Throwable cause, String code, String source)Parameters:
messageString -causeThrowable -codeString -sourceString -
DaytonaTimeoutException
Section titled “DaytonaTimeoutException”Raised when an SDK operation times out.
Client-side transport timeouts default to HTTP 408, but mapped HTTP 504 (or any server-supplied timeout status) is preserved when available.
Properties:
STATUS_CODEint -
Constructors
Section titled “Constructors”new DaytonaTimeoutException()
Section titled “new DaytonaTimeoutException()”public DaytonaTimeoutException(String message, Throwable cause)Creates a timeout exception with a cause.
Parameters:
messageString - timeout descriptioncauseThrowable - root cause
new DaytonaTimeoutException()
Section titled “new DaytonaTimeoutException()”public DaytonaTimeoutException(String message)Creates a timeout exception.
Parameters:
messageString - timeout description
new DaytonaTimeoutException()
Section titled “new DaytonaTimeoutException()”public DaytonaTimeoutException(int statusCode, String message, String code, String source)Parameters:
statusCodeint -messageString -codeString -sourceString -
new DaytonaTimeoutException()
Section titled “new DaytonaTimeoutException()”public DaytonaTimeoutException(int statusCode, String message, Throwable cause, String code, String source)Parameters:
statusCodeint -messageString -causeThrowable -codeString -sourceString -
new DaytonaTimeoutException()
Section titled “new DaytonaTimeoutException()”public DaytonaTimeoutException(String message, String code, String source)Parameters:
messageString -codeString -sourceString -
new DaytonaTimeoutException()
Section titled “new DaytonaTimeoutException()”public DaytonaTimeoutException(String message, Throwable cause, String code, String source)Parameters:
messageString -causeThrowable -codeString -sourceString -
DaytonaUnprocessableEntityException
Section titled “DaytonaUnprocessableEntityException”Raised for HTTP 422 — the request is well-formed but semantically invalid (e.g. unsupported resource class, invalid configuration values).
try {daytona.sandbox().create(params);} catch (DaytonaUnprocessableEntityException e) {System.err.println("Unprocessable entity: " + e.getMessage());}Properties:
STATUS_CODEint - HTTP status code carried by every instance of this class.
Constructors
Section titled “Constructors”new DaytonaUnprocessableEntityException()
Section titled “new DaytonaUnprocessableEntityException()”public DaytonaUnprocessableEntityException(String message)Parameters:
messageString -
new DaytonaUnprocessableEntityException()
Section titled “new DaytonaUnprocessableEntityException()”public DaytonaUnprocessableEntityException(String message, Throwable cause)Parameters:
messageString -causeThrowable -
new DaytonaUnprocessableEntityException()
Section titled “new DaytonaUnprocessableEntityException()”public DaytonaUnprocessableEntityException(String message, String code, String source)Parameters:
messageString -codeString -sourceString -
new DaytonaUnprocessableEntityException()
Section titled “new DaytonaUnprocessableEntityException()”public DaytonaUnprocessableEntityException(String message, Throwable cause, String code, String source)Parameters:
messageString -causeThrowable -codeString -sourceString -
DaytonaValidationException
Section titled “DaytonaValidationException”Raised for semantic validation failures (HTTP 422).
The mapper throws this subclass for 422 responses so that pre-existing
catch (DaytonaValidationException e) blocks keep matching, while
catch (DaytonaUnprocessableEntityException e) also matches via the
parent class.
Exists for backward compatibility only. Deleting this class (and
switching the 422 case in ExceptionMapper back to the parent) is
the whole removal.
Deprecated: Use DaytonaUnprocessableEntityException instead.
Constructors
Section titled “Constructors”new DaytonaValidationException()
Section titled “new DaytonaValidationException()”public DaytonaValidationException(String message)Creates a validation exception.
Parameters:
messageString - error description
new DaytonaValidationException()
Section titled “new DaytonaValidationException()”public DaytonaValidationException(String message, Throwable cause)Creates a validation exception with a cause.
Parameters:
messageString - error descriptioncauseThrowable - root cause
new DaytonaValidationException()
Section titled “new DaytonaValidationException()”public DaytonaValidationException(String message, String code, String source)Parameters:
messageString -codeString -sourceString -
new DaytonaValidationException()
Section titled “new DaytonaValidationException()”public DaytonaValidationException(String message, Throwable cause, String code, String source)Parameters:
messageString -causeThrowable -codeString -sourceString -