类 StandardSQLExceptionConverter
- java.lang.Object
-
- org.hibernate.exception.internal.StandardSQLExceptionConverter
-
- 所有已实现的接口:
Serializable,SQLExceptionConverter
- 直接已知子类:
SQLStateConverter
public class StandardSQLExceptionConverter extends Object implements SQLExceptionConverter
- 作者:
- Steve Ebersole
- 另请参阅:
- 序列化表格
-
-
构造器概要
构造器 构造器 说明 StandardSQLExceptionConverter()StandardSQLExceptionConverter(SQLExceptionConversionDelegate... delegates)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidaddDelegate(SQLExceptionConversionDelegate delegate)JDBCExceptionconvert(SQLException sqlException, String message, String sql)Convert the given SQLException into the HibernateJDBCExceptionhierarchy.
-
-
-
构造器详细资料
-
StandardSQLExceptionConverter
public StandardSQLExceptionConverter()
-
StandardSQLExceptionConverter
public StandardSQLExceptionConverter(SQLExceptionConversionDelegate... delegates)
-
-
方法详细资料
-
addDelegate
public void addDelegate(SQLExceptionConversionDelegate delegate)
-
convert
public JDBCException convert(SQLException sqlException, String message, String sql)
从接口复制的说明:SQLExceptionConverterConvert the given SQLException into the HibernateJDBCExceptionhierarchy.- 指定者:
convert在接口中SQLExceptionConverter- 参数:
sqlException- The SQLException to be converted.message- An optional error message.- 返回:
- The resulting JDBCException.
- 另请参阅:
, JDBCConnectionException, SQLGrammarException, LockAcquisitionException
-
-