public class PassThroughExceptionTranslationStrategy extends Object implements ExceptionTranslationStrategy
PassThroughExceptionTranslationStrategy
returns null for unknown Exception
s.Constructor and Description |
---|
PassThroughExceptionTranslationStrategy(org.springframework.core.convert.converter.Converter<Exception,org.springframework.dao.DataAccessException> converter) |
Modifier and Type | Method and Description |
---|---|
org.springframework.dao.DataAccessException |
translate(Exception e)
Potentially translate the given
Exception into DataAccessException . |
public PassThroughExceptionTranslationStrategy(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
Copyright © 2011–2017 Pivotal Software, Inc.. All rights reserved.