DigitalOcean APIv2 client errors module

class errors.APIAuthError(*args, **kwargs)[source]

DigitalOcean APIv2 authentication error class. Raised when client initialization receives a HTTP 401 from the API. Client init requests for list of instances associated with the account.

class errors.InvalidArgumentError(*args, **kwargs)[source]

DigitalOcean APIv2 method arugment error class. Raised when a method receives an invalid, empty, or type mismatching value for an arugment.

class errors.APIError(*args, **kwargs)[source]

DigitalOcean APIv2 generic API error class. Raised when a failure response is received from the API that is not an authentication related one.

class errors.NetworkError(*args, **kwargs)[source]

DigitalOcean APIv2 client fallback network error class. Raised when requests library encounters a network error while attempting to contact the DigitalOcean API.