Class MyBatisExceptionTranslator
java.lang.Object
org.mybatis.spring.MyBatisExceptionTranslator
net.solarnetwork.central.dao.mybatis.support.MyBatisExceptionTranslator
- All Implemented Interfaces:
org.springframework.dao.support.PersistenceExceptionTranslator
public class MyBatisExceptionTranslator
extends org.mybatis.spring.MyBatisExceptionTranslator
Extension of
MyBatisExceptionTranslator to handle
connection pool exceptions like
org.springframework.jdbc.CannotGetJdbcConnectionException that
are returned themselves.- Since:
- 2.2
-
Constructor Summary
ConstructorsConstructorDescriptionMyBatisExceptionTranslator(DataSource dataSource, boolean exceptionTranslatorLazyInit) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.dao.DataAccessException
-
Constructor Details
-
MyBatisExceptionTranslator
Constructor.- Parameters:
dataSource- the data sourceexceptionTranslatorLazyInit- the lazy status
-
-
Method Details
-
translateExceptionIfPossible
- Specified by:
translateExceptionIfPossiblein interfaceorg.springframework.dao.support.PersistenceExceptionTranslator- Overrides:
translateExceptionIfPossiblein classorg.mybatis.spring.MyBatisExceptionTranslator
-