Skip to content
View as Markdown

DaytonaError

class DaytonaError(Exception)

Base error for Daytona SDK.

Attributes:

  • message str - Error message
  • status_code int | None - HTTP status code if available
  • headers dict[str, Any] - Response headers

DaytonaError.__init__

def __init__(message: str,
status_code: int | None = None,
headers: Mapping[str, Any] | None = None)

Initialize Daytona error.

Arguments:

  • message str - Error message
  • status_code int | None - HTTP status code if available
  • headers Mapping[str, Any] | None - Response headers if available

DaytonaNotFoundError

class DaytonaNotFoundError(DaytonaError)

Error for when a resource is not found.

DaytonaRateLimitError

class DaytonaRateLimitError(DaytonaError)

Error for when rate limit is exceeded.

DaytonaTimeoutError

class DaytonaTimeoutError(DaytonaError)

Error for when a timeout occurs.