exceptions.py 991 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. """
  2. Specification for exceptions raised by a provider
  3. """
  4. class CloudBridgeBaseException(Exception):
  5. """
  6. Base class for all CloudBridge exceptions
  7. """
  8. pass
  9. class WaitStateException(CloudBridgeBaseException):
  10. """
  11. Marker interface for object wait exceptions.
  12. Thrown when a timeout or errors occurs waiting for an object does not reach
  13. the expected state within a specified time limit.
  14. """
  15. pass
  16. class InvalidConfigurationException(CloudBridgeBaseException):
  17. """
  18. Marker interface for invalid launch configurations.
  19. Thrown when a combination of parameters in a LaunchConfig
  20. object results in an illegal state.
  21. """
  22. pass
  23. class ProviderConnectionException(CloudBridgeBaseException):
  24. """
  25. Marker interface for connection errors to a cloud provider.
  26. Thrown when cloudbridge is unable to connect with a provider,
  27. for example, when credentials are incorrect, or connection
  28. settings are invalid.
  29. """
  30. pass