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)
ExceptionTranslationStrategyException into DataAccessException.translate in interface ExceptionTranslationStrategytranslate in class PassThroughExceptionTranslationStrategye - must not be null.Exception cannot be translated.protected RedisSystemException getFallback(Exception e)
RedisSystemException wrapping the given Exception.e - causing exception.Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.