From 0699da1b836abbbdce823fc15489e2cc21656cf3 Mon Sep 17 00:00:00 2001 From: OZGCloud <ozgcloud@mgm-tp.com> Date: Fri, 25 Oct 2024 11:02:17 +0200 Subject: [PATCH] handle all exceptions --- .../common/binaryfile/GrpcBinaryFileServerDownloader.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ozgcloud-common-lib/src/main/java/de/ozgcloud/common/binaryfile/GrpcBinaryFileServerDownloader.java b/ozgcloud-common-lib/src/main/java/de/ozgcloud/common/binaryfile/GrpcBinaryFileServerDownloader.java index c85c178..70020e1 100644 --- a/ozgcloud-common-lib/src/main/java/de/ozgcloud/common/binaryfile/GrpcBinaryFileServerDownloader.java +++ b/ozgcloud-common-lib/src/main/java/de/ozgcloud/common/binaryfile/GrpcBinaryFileServerDownloader.java @@ -123,7 +123,7 @@ public class GrpcBinaryFileServerDownloader<T> { void handleSafety(ExceptionalRunnable runnable) { try { runnable.run(); - } catch (IOException e) { + } catch (Exception e) { IOUtils.closeQuietly(inputStream, e1 -> LOG.error("InputStream 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); -- GitLab