Skip to content
Snippets Groups Projects
Commit 0699da1b authored by OZGCloud's avatar OZGCloud
Browse files

handle all exceptions

parent e0ca755f
Branches
Tags
No related merge requests found
...@@ -123,7 +123,7 @@ public class GrpcBinaryFileServerDownloader<T> { ...@@ -123,7 +123,7 @@ public class GrpcBinaryFileServerDownloader<T> {
void handleSafety(ExceptionalRunnable runnable) { void handleSafety(ExceptionalRunnable runnable) {
try { try {
runnable.run(); runnable.run();
} catch (IOException e) { } catch (Exception e) {
IOUtils.closeQuietly(inputStream, e1 -> LOG.error("InputStream cannot be closed.", e1)); IOUtils.closeQuietly(inputStream, e1 -> LOG.error("InputStream cannot be closed.", e1));
IOUtils.closeQuietly(outputStream, e1 -> LOG.error("OutputStream cannot be closed.", e1)); IOUtils.closeQuietly(outputStream, e1 -> LOG.error("OutputStream cannot be closed.", e1));
throw new TechnicalException("Error occurred during downloading file content download.", e); throw new TechnicalException("Error occurred during downloading file content download.", e);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment