org.springframework.data.redis
Class FallbackExceptionTranslationStrategy
java.lang.Object
org.springframework.data.redis.PassThroughExceptionTranslationStrategy
org.springframework.data.redis.FallbackExceptionTranslationStrategy
- All Implemented Interfaces:
- ExceptionTranslationStrategy
public class FallbackExceptionTranslationStrategy
- extends PassThroughExceptionTranslationStrategy
FallbackExceptionTranslationStrategy returns RedisSystemException for unknown Exceptions.
- Since:
- 1.4
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FallbackExceptionTranslationStrategy
public FallbackExceptionTranslationStrategy(Converter<Exception,DataAccessException> converter)
translate
public DataAccessException translate(Exception e)
- Description copied from interface:
ExceptionTranslationStrategy
- Potentially translate the given
Exception into DataAccessException.
- Specified by:
translate in interface ExceptionTranslationStrategy- Overrides:
translate in class PassThroughExceptionTranslationStrategy
- Returns:
getFallback
protected RedisSystemException getFallback(Exception e)
- Returns a new
RedisSystemException wrapping the given Exception.
- Parameters:
e -
- Returns: