Package org.springframework.data.redis
Class PassThroughExceptionTranslationStrategy
java.lang.Object
org.springframework.data.redis.PassThroughExceptionTranslationStrategy
- All Implemented Interfaces:
ExceptionTranslationStrategy
- Direct Known Subclasses:
FallbackExceptionTranslationStrategy
public class PassThroughExceptionTranslationStrategy
extends Object
implements ExceptionTranslationStrategy
PassThroughExceptionTranslationStrategy returns null for unknown Exceptions.- Since:
- 1.4
- Author:
- Christoph Strobl, Mark Paluch
-
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionPotentially translate the givenExceptionintoDataAccessException.
-
Constructor Details
-
PassThroughExceptionTranslationStrategy
-
-
Method Details
-
translate
Description copied from interface:ExceptionTranslationStrategyPotentially translate the givenExceptionintoDataAccessException.- Specified by:
translatein interfaceExceptionTranslationStrategy- Parameters:
e- must not be null.- Returns:
- can be null if given
Exceptioncannot be translated.
-