Class MyBatisExceptionTranslator

java.lang.Object
org.mybatis.spring.MyBatisExceptionTranslator
All Implemented Interfaces:
org.springframework.dao.support.PersistenceExceptionTranslator

public class MyBatisExceptionTranslator extends Object implements org.springframework.dao.support.PersistenceExceptionTranslator
Default exception translator.

Translates MyBatis SqlSession returned exception into a Spring DataAccessException using Spring's SQLExceptionTranslator Can load SQLExceptionTranslator eagerly or when the first exception is translated.

Author:
Eduardo Macarron