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
ConstructorDescriptionPassThroughExceptionTranslationStrategy
(org.springframework.core.convert.converter.Converter<Exception, org.springframework.dao.DataAccessException> converter) -
Method Summary
-
Constructor Details
-
PassThroughExceptionTranslationStrategy
public PassThroughExceptionTranslationStrategy(org.springframework.core.convert.converter.Converter<Exception, org.springframework.dao.DataAccessException> converter)
-
-
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.
-