Package org.springframework.data.redis
Class FallbackExceptionTranslationStrategy
java.lang.Object
org.springframework.data.redis.PassThroughExceptionTranslationStrategy
org.springframework.data.redis.FallbackExceptionTranslationStrategy
- All Implemented Interfaces:
ExceptionTranslationStrategy
- Since:
- 1.4
- Author:
- Christoph Strobl, Thomas Darimont, Mark Paluch
-
Constructor Summary
ConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionprotected RedisSystemException
Returns a newRedisSystemException
wrapping the givenException
.Potentially translate the givenException
intoDataAccessException
.
-
Constructor Details
-
FallbackExceptionTranslationStrategy
-
-
Method Details
-
translate
Description copied from interface:ExceptionTranslationStrategy
Potentially translate the givenException
intoDataAccessException
.- Specified by:
translate
in interfaceExceptionTranslationStrategy
- Overrides:
translate
in classPassThroughExceptionTranslationStrategy
- Parameters:
e
- must not be null.- Returns:
- can be null if given
Exception
cannot be translated.
-
getFallback
Returns a newRedisSystemException
wrapping the givenException
.- Parameters:
e
- causing exception.- Returns:
- the fallback exception.
-