libcloud.utils.decorators module

libcloud.utils.decorators.wrap_non_libcloud_exceptions(func)[source]

Decorators function which catches non LibcloudError exceptions, wraps them in LibcloudError class and re-throws the wrapped exception.

Note: This function should only be used to wrap methods on the driver classes.