예제 #1
0
 def wrapper(*args, **kwargs):
     try:
         return func(*args, **kwargs)
     except redis.ConnectionError:
         msg = "ConnectionFailure caught"
         LOG.error(msg)
         raise storage_errors.ConnectionError(msg)
예제 #2
0
 def wrapper(*args, **kwargs):
     try:
         return func(*args, **kwargs)
     except exc.InvalidRequestError as ex:
         LOG.exception(ex)
         raise errors.ConnectionError()
예제 #3
0
 def wrapper(*args, **kwargs):
     try:
         return func(*args, **kwargs)
     except riak.RiakError as ex:
         LOG.exception(ex)
         raise errors.ConnectionError()
예제 #4
0
 def wrapper(*args, **kwargs):
     try:
         return func(*args, **kwargs)
     except errors.ConnectionFailure as ex:
         LOG.exception(ex)
         raise storage_errors.ConnectionError()