接口 SQLExceptionConverter
-
- 所有超级接口:
Serializable
public interface SQLExceptionConverter extends Serializable
Defines a contract for implementations that know how to convert a SQLException into Hibernate's JDBCException hierarchy. Inspired by Spring's SQLExceptionTranslator. Implementations must have a constructor which takes aViolatedConstraintNameExtracterparameter. Implementations may implementConfigurableif they need to perform configuration steps prior to first use.- 作者:
- Steve Ebersole
- 另请参阅:
SQLExceptionConverterFactory
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 JDBCExceptionconvert(SQLException sqlException, String message, String sql)Convert the given SQLException into the HibernateJDBCExceptionhierarchy.
-
-
-
方法详细资料
-
convert
JDBCException convert(SQLException sqlException, String message, String sql)
Convert the given SQLException into the HibernateJDBCExceptionhierarchy.- 参数:
sqlException- The SQLException to be converted.message- An optional error message.- 返回:
- The resulting JDBCException.
- 另请参阅:
, JDBCConnectionException, SQLGrammarException, LockAcquisitionException
-
-