Exceptions

Exceptions raised by the hostedpi module are documented here.

They can be imported from hostedpi.exc, for example:

from hostedpi.exc import HostedPiException
class hostedpi.exc.HostedPiException[source]

Bases: Exception

Base class for all exceptions in the hostedpi module

class hostedpi.exc.MythicAuthenticationError[source]

Bases: HostedPiException

Exception raised when authentication fails

class hostedpi.exc.HostedPiUserError[source]

Bases: HostedPiException

Base exception for user errors, such as invalid input or configuration issues

class hostedpi.exc.HostedPiValidationError[source]

Bases: HostedPiUserError

Exception raised for validation errors, such as invalid data formats or missing required fields

class hostedpi.exc.HostedPiServerError[source]

Bases: HostedPiException

Exception raised for server errors, such as API errors or server-side issues

class hostedpi.exc.HostedPiInvalidParametersError[source]

Bases: HostedPiServerError, HostedPiUserError

Exception raised for invalid parameters in API requests or server operations

class hostedpi.exc.HostedPiNotAuthorizedError[source]

Bases: HostedPiServerError

Exception raised when the user is not authorized to perform a specific action or access a resource

class hostedpi.exc.HostedPiOutOfStockError[source]

Bases: HostedPiServerError

Exception raised when no servers with the required specification are available

class hostedpi.exc.HostedPiProvisioningError[source]

Bases: HostedPiServerError

Exception raised when an action cannot be performed because the Pi is still being provisioned

class hostedpi.exc.HostedPiNameExistsError[source]

Bases: HostedPiServerError

Exception raised when a Pi with the specified name already exists