From b730d13105820e959c4da7daa74cd16b404f54d0 Mon Sep 17 00:00:00 2001 From: AZ Date: Tue, 3 Jan 2017 11:03:06 +0100 Subject: [PATCH] replaced generic exception catch with concrete multicatching of thrown exceptions form getbundle --- src/main/java/jota/IotaAPIProxy.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/jota/IotaAPIProxy.java b/src/main/java/jota/IotaAPIProxy.java index d550e44..6963577 100644 --- a/src/main/java/jota/IotaAPIProxy.java +++ b/src/main/java/jota/IotaAPIProxy.java @@ -328,9 +328,9 @@ public class IotaAPIProxy { } finalBundles.add(gbr); } - // If error returned from getBundle, simply ignore it because the bundle was most likely incorrect - }catch(Exception e){ - log.warn("GetBundleError: ",e); + // If error returned from getBundle, simply ignore it because the bundle was most likely incorrect + } catch (InvalidBundleException | ArgumentException | InvalidSignatureException e) { + log.warn("GetBundleError: ", e); } }