Skip to content

Commit b83283a

Browse files
committed
remove obsolete code
1 parent 0de2fdd commit b83283a

File tree

3 files changed

+0
-119
lines changed

3 files changed

+0
-119
lines changed

hibernate-reactive-core/src/main/java/org/hibernate/reactive/exception/ConstraintViolationException.java

Lines changed: 0 additions & 24 deletions
This file was deleted.

hibernate-reactive-core/src/main/java/org/hibernate/reactive/exception/VertxSqlClientException.java

Lines changed: 0 additions & 86 deletions
This file was deleted.

hibernate-reactive-core/src/main/java/org/hibernate/reactive/pool/impl/SqlClientConnection.java

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
import java.lang.invoke.MethodHandles;
99
import java.sql.ResultSet;
1010
import java.sql.SQLException;
11-
import java.sql.SQLIntegrityConstraintViolationException;
1211
import java.util.ArrayList;
1312
import java.util.List;
1413
import java.util.Objects;
@@ -18,8 +17,6 @@
1817
import org.hibernate.engine.jdbc.spi.SqlStatementLogger;
1918
import org.hibernate.reactive.adaptor.impl.JdbcNull;
2019
import org.hibernate.reactive.adaptor.impl.ResultSetAdaptor;
21-
import org.hibernate.reactive.exception.ConstraintViolationException;
22-
import org.hibernate.reactive.exception.VertxSqlClientException;
2320
import org.hibernate.reactive.logging.impl.Log;
2421
import org.hibernate.reactive.logging.impl.LoggerFactory;
2522
import org.hibernate.reactive.pool.BatchingConnection;
@@ -156,12 +153,6 @@ private <T> T convertException(T rows, String sql, Throwable sqlException) {
156153
if ( sqlException == null ) {
157154
return rows;
158155
}
159-
if ( sqlException instanceof SQLIntegrityConstraintViolationException ) {
160-
throw new ConstraintViolationException( "could not execute statement", (SQLException) sqlException, sql );
161-
}
162-
if ( sqlException instanceof SQLException ) {
163-
throw new VertxSqlClientException( "could not execute statement", (SQLException) sqlException, sql );
164-
}
165156
return rethrow( sqlException );
166157
}
167158

0 commit comments

Comments
 (0)