Changeset View
Changeset View
Standalone View
Standalone View
swh/storage/exc.py
Show All 15 Lines | |||||
class StorageAPIError(Exception): | class StorageAPIError(Exception): | ||||
"""Specific internal storage api (mainly connection) | """Specific internal storage api (mainly connection) | ||||
""" | """ | ||||
def __str__(self): | def __str__(self): | ||||
args = self.args | args = self.args | ||||
return 'An unexpected error occurred in the api backend: %s' % args | return 'An unexpected error occurred in the api backend: %s' % args | ||||
class StorageArgumentException(Exception): | |||||
"""Argument passed to a Storage endpoint is invalid.""" | |||||
pass |