public class FallbackExceptionTranslationStrategy extends PassThroughExceptionTranslationStrategy
Constructor and Description |
---|
FallbackExceptionTranslationStrategy(Converter<Exception,DataAccessException> converter) |
Modifier and Type | Method and Description |
---|---|
protected RedisSystemException |
getFallback(Exception e)
Returns a new
RedisSystemException wrapping the given Exception . |
DataAccessException |
translate(Exception e)
Potentially translate the given
Exception into DataAccessException . |
public FallbackExceptionTranslationStrategy(Converter<Exception,DataAccessException> converter)
public DataAccessException translate(Exception e)
ExceptionTranslationStrategy
Exception
into DataAccessException
.translate
in interface ExceptionTranslationStrategy
translate
in class PassThroughExceptionTranslationStrategy
protected RedisSystemException getFallback(Exception e)
RedisSystemException
wrapping the given Exception
.e
- Copyright © 2011–2019 Pivotal Software, Inc.. All rights reserved.