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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PassThroughExceptionTranslationStrategy
public PassThroughExceptionTranslationStrategy(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
- Returns: