Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public boolean isClosed() {
*/
@FunctionalInterface
interface FlightStreamSupplier {
Future<FlightStream> get() throws SQLTimeoutException;
Future<FlightStream> get() throws SQLException;
}

private FlightStream next(final FlightStreamSupplier flightStreamSupplier) throws SQLException {
Expand All @@ -107,7 +107,7 @@ private FlightStream next(final FlightStreamSupplier flightStreamSupplier) throw
return stream;
}
} catch (final ExecutionException | InterruptedException | CancellationException e) {
throw AvaticaConnection.HELPER.wrap("Query canceled", e);
throw AvaticaConnection.HELPER.wrap(e.getMessage(), e);
}
}
return null;
Expand Down Expand Up @@ -147,7 +147,7 @@ public FlightStream next() throws SQLException {
try {
return completionService.take();
} catch (final InterruptedException e) {
throw AvaticaConnection.HELPER.wrap("Query canceled", e);
throw AvaticaConnection.HELPER.wrap(e.getMessage(), e);
}
});
}
Expand Down