public class FallbackExceptionTranslationStrategy extends PassThroughExceptionTranslationStrategy
Constructor and Description |
---|
FallbackExceptionTranslationStrategy(org.springframework.core.convert.converter.Converter<Exception,org.springframework.dao.DataAccessException> converter) |
Modifier and Type | Method and Description |
---|---|
protected RedisSystemException |
getFallback(Exception e)
Returns a new
RedisSystemException wrapping the given Exception . |
org.springframework.dao.DataAccessException |
translate(Exception e)
Potentially translate the given
Exception into DataAccessException . |
public FallbackExceptionTranslationStrategy(org.springframework.core.convert.converter.Converter<Exception,org.springframework.dao.DataAccessException> converter)
public org.springframework.dao.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–2017 Pivotal Software, Inc.. All rights reserved.