public class PassThroughExceptionTranslationStrategy extends Object implements ExceptionTranslationStrategy
PassThroughExceptionTranslationStrategy
returns null for unknown Exception
s.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)
ExceptionTranslationStrategy
Exception
into DataAccessException
.translate
in interface ExceptionTranslationStrategy
e
- must not be null.Exception
cannot be translated.Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.