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 Exception
s.- Since:
- 1.4
- Author:
- Christoph Strobl, Mark Paluch
-
Constructor Summary
ConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionPotentially translate the givenException
intoDataAccessException
.
-
Constructor Details
-
PassThroughExceptionTranslationStrategy
-
-
Method Details
-
translate
Description copied from interface:ExceptionTranslationStrategy
Potentially translate the givenException
intoDataAccessException
.- Specified by:
translate
in interfaceExceptionTranslationStrategy
- Parameters:
e
- must not be null.- Returns:
- can be null if given
Exception
cannot be translated.
-