Interface SQLExceptionTranslator
- All Known Implementing Classes:
SpringSQLExceptionTranslator
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
-
Method Summary
Modifier and TypeMethodDescriptiontranslate(String sql, List<?> params, SQLException e) 将SQl异常转换其他运行时异常
-
Method Details
-
translate
将SQl异常转换其他运行时异常- Parameters:
sql- sql语句params- sql参数e- 原SQL异常- Returns:
- 需要转换为的异常
-