use of org.hibernate.exception.internal.SQLExceptionTypeDelegate in project hibernate-orm by hibernate.
the class JdbcEnvironmentImpl method buildSqlExceptionHelper.
@SuppressWarnings("deprecation")
private SqlExceptionHelper buildSqlExceptionHelper(Dialect dialect, boolean logWarnings) {
final StandardSQLExceptionConverter sqlExceptionConverter = new StandardSQLExceptionConverter();
sqlExceptionConverter.addDelegate(dialect.buildSQLExceptionConversionDelegate());
sqlExceptionConverter.addDelegate(new SQLExceptionTypeDelegate(dialect));
// todo : vary this based on extractedMetaDataSupport.getSqlStateType()
sqlExceptionConverter.addDelegate(new SQLStateConversionDelegate(dialect));
return new SqlExceptionHelper(sqlExceptionConverter, logWarnings);
}
Aggregations