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
DataAccessException
s- Author:
- Jennifer Hickey, Thomas Darimont, Christoph Strobl, Guy Korland, Mark Paluch
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable DataAccessException
@Nullable DataAccessException
Potentially translate the givenException
intoDataAccessException
.@Nullable DataAccessException
-
Constructor Details
-
JedisExceptionConverter
public JedisExceptionConverter()
-
-
Method Details
-
translateExceptionIfPossible
- Specified by:
translateExceptionIfPossible
in interfacePersistenceExceptionTranslator
-
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.
-
convert
- Specified by:
convert
in interfaceConverter<Exception, DataAccessException>
-