Skip to content

Commit

Permalink
Merge pull request #180 from v-xiangs/add-SocketTimeoutException-as-c…
Browse files Browse the repository at this point in the history
…ause

add socket timeout exception as cause
  • Loading branch information
Suraiya Hameed authored Mar 9, 2017
2 parents 68f58aa + a348b37 commit a53054d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/microsoft/sqlserver/jdbc/IOBuffer.java
Original file line number Diff line number Diff line change
Expand Up @@ -1980,7 +1980,7 @@ final int read(byte[] data,
logger.fine(toString() + " read failed:" + e.getMessage());

if (e instanceof SocketTimeoutException) {
con.terminate(SQLServerException.ERROR_SOCKET_TIMEOUT, e.getMessage());
con.terminate(SQLServerException.ERROR_SOCKET_TIMEOUT, e.getMessage(), e);
}
else {
con.terminate(SQLServerException.DRIVER_ERROR_IO_FAILED, e.getMessage());
Expand Down

0 comments on commit a53054d

Please sign in to comment.