org.springframework.data.redis
Class PassThroughExceptionTranslationStrategy

java.lang.Object
  extended by 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

Constructor Summary
PassThroughExceptionTranslationStrategy(Converter<Exception,DataAccessException> converter)
           
 
Method Summary
 DataAccessException translate(Exception e)
          Potentially translate the given Exception into DataAccessException.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PassThroughExceptionTranslationStrategy

public PassThroughExceptionTranslationStrategy(Converter<Exception,DataAccessException> converter)
Method Detail

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: