Class JedisExceptionConverter
java.lang.Object
org.springframework.data.redis.connection.jedis.JedisExceptionConverter
- All Implemented Interfaces:
Converter<Exception,,DataAccessException> PersistenceExceptionTranslator,ExceptionTranslationStrategy
public class JedisExceptionConverter
extends Object
implements PersistenceExceptionTranslator, ExceptionTranslationStrategy, Converter<Exception,DataAccessException>
Converts Exceptions thrown from Jedis to
DataAccessExceptions- Author:
- Jennifer Hickey, Thomas Darimont, Christoph Strobl, Guy Korland, Mark Paluch
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable DataAccessException@Nullable DataAccessExceptionPotentially translate the givenExceptionintoDataAccessException.@Nullable DataAccessException
-
Constructor Details
-
JedisExceptionConverter
public JedisExceptionConverter()
-
-
Method Details
-
translateExceptionIfPossible
- Specified by:
translateExceptionIfPossiblein interfacePersistenceExceptionTranslator
-
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.
-
convert
- Specified by:
convertin interfaceConverter<Exception,DataAccessException>
-