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

Merge pull request 'Alle Exceptions behandeln' (#33) from...

Merge pull request 'Alle Exceptions behandeln' (#33) from handle-exceptions-grpc-downloader into master

Reviewed-on: https://git.ozg-sh.de/ozgcloud-lib/common-lib/pulls/33


Reviewed-by: default avatarOZGCloud <ozgcloud@mgm-tp.com>
parents e0ca755f 0699da1b
Branches
Tags
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment