接口 SQLExceptionConversionDelegate
-
- 所有已知实现类:
AbstractSQLExceptionConversionDelegate,CacheSQLExceptionConversionDelegate,SQLExceptionTypeDelegate,SQLStateConversionDelegate
public interface SQLExceptionConversionDelegateAllow aSQLExceptionConverterto work by chaining together multiple such delegates. The main difference between a delegate and a full-fledged converter is that a delegate may returnnull.- 作者:
- Steve Ebersole
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 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.sql- The SQL statement, if one, being performed when the exception occurred.- 返回:
- The resulting JDBCException, can be
null
-
-