Skip to content

Commit 2a782b7

Browse files
committed
wrap StringIndexOutOfBoundsException with SQLServerException
1 parent c7d6ece commit 2a782b7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/main/java/com/microsoft/sqlserver/jdbc/SQLServerParameterMetaData.java

+3
Original file line numberDiff line numberDiff line change
@@ -631,6 +631,9 @@ private void checkClosed() throws SQLServerException {
631631
catch (SQLException e) {
632632
SQLServerException.makeFromDriverError(con, stmtParent, e.toString(), null, false);
633633
}
634+
catch(StringIndexOutOfBoundsException e){
635+
SQLServerException.makeFromDriverError(con, stmtParent, e.toString(), null, false);
636+
}
634637
}
635638

636639
public boolean isWrapperFor(Class<?> iface) throws SQLException {

0 commit comments

Comments
 (0)