have cause of SQLServerException exception at any place where it possible
@@ -1987,7 +1987,7 @@ final class TDSChannel {
con.terminate(SQLServerException.ERROR_SOCKET_TIMEOUT, e.getMessage(), e);
}
else {
- con.terminate(SQLServerException.DRIVER_ERROR_IO_FAILED, e.getMessage());
+ con.terminate(SQLServerException.DRIVER_ERROR_IO_FAILED, e.getMessage(), e);
}
return 0; // Keep the compiler happy.
@@ -2004,7 +2004,7 @@ final class TDSChannel {
if (logger.isLoggable(Level.FINER))
logger.finer(toString() + " write failed:" + e.getMessage());
- con.terminate(SQLServerException.DRIVER_ERROR_IO_FAILED, e.getMessage());
+ con.terminate(SQLServerException.DRIVER_ERROR_IO_FAILED, e.getMessage(), e);
}
}
@@ -2016,7 +2016,7 @@ final class TDSChannel {
if (logger.isLoggable(Level.FINER))
logger.finer(toString() + " flush failed:" + e.getMessage());
- con.terminate(SQLServerException.DRIVER_ERROR_IO_FAILED, e.getMessage());
+ con.terminate(SQLServerException.DRIVER_ERROR_IO_FAILED, e.getMessage(), e);
}
}
