replaced generic exception catch with concrete multicatching of thrown exceptions form getbundle

This commit is contained in:
AZ
2017-01-03 11:03:06 +01:00
parent 8c0833a9ba
commit b730d13105
+3 -3
View File
@@ -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);
}
}