public class PassThroughExceptionTranslationStrategy extends Object implements ExceptionTranslationStrategy
PassThroughExceptionTranslationStrategy returns null for unknown Exceptions.| Constructor and Description |
|---|
PassThroughExceptionTranslationStrategy(Converter<Exception,DataAccessException> converter) |
| Modifier and Type | Method and Description |
|---|---|
DataAccessException |
translate(Exception e)
Potentially translate the given
Exception into DataAccessException. |
public PassThroughExceptionTranslationStrategy(Converter<Exception,DataAccessException> converter)
@Nullable public DataAccessException translate(Exception e)
ExceptionTranslationStrategyException into DataAccessException.translate in interface ExceptionTranslationStrategye - must not be null.Exception cannot be translated.Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.