[docs]
class HostedPiException(Exception):
"Base class for all exceptions in the hostedpi module"
[docs]
class MythicAuthenticationError(HostedPiException):
"Exception raised when authentication fails"
[docs]
class HostedPiUserError(HostedPiException):
"Base exception for user errors, such as invalid input or configuration issues"
[docs]
class HostedPiValidationError(HostedPiUserError):
"Exception raised for validation errors, such as invalid data formats or missing required fields"
[docs]
class HostedPiServerError(HostedPiException):
"Exception raised for server errors, such as API errors or server-side issues"
[docs]
class HostedPiInvalidParametersError(HostedPiServerError, HostedPiUserError):
"Exception raised for invalid parameters in API requests or server operations"
[docs]
class HostedPiNotAuthorizedError(HostedPiServerError):
"Exception raised when the user is not authorized to perform a specific action or access a resource"
[docs]
class HostedPiOutOfStockError(HostedPiServerError):
"Exception raised when no servers with the required specification are available"
[docs]
class HostedPiProvisioningError(HostedPiServerError):
"Exception raised when an action cannot be performed because the Pi is still being provisioned"
[docs]
class HostedPiNameExistsError(HostedPiServerError):
"Exception raised when a Pi with the specified name already exists"