From: Jim Hahn Date: Mon, 19 Feb 2018 16:17:19 +0000 (-0500) Subject: Fix compilation issue due to generic Exception X-Git-Tag: v1.2.0~27 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=1708e9a45cb88571613c10b68d392811b2b3f0f4;p=policy%2Fdrools-pdp.git Fix compilation issue due to generic Exception After modifying common to remove generic Exceptions, drools-pdp would no longer compile. Had to modify drools-pdp to accomodate the specific exception. Change-Id: Ib804da2ebfc7dbf5f4035ba3d48832ffe541f902 Issue-ID: POLICY-246 Signed-off-by: Jim Hahn --- diff --git a/feature-state-management/src/main/java/org/onap/policy/drools/statemanagement/DroolsPDPIntegrityMonitor.java b/feature-state-management/src/main/java/org/onap/policy/drools/statemanagement/DroolsPDPIntegrityMonitor.java index 382f01e2..46bba914 100644 --- a/feature-state-management/src/main/java/org/onap/policy/drools/statemanagement/DroolsPDPIntegrityMonitor.java +++ b/feature-state-management/src/main/java/org/onap/policy/drools/statemanagement/DroolsPDPIntegrityMonitor.java @@ -430,14 +430,14 @@ public class DroolsPDPIntegrityMonitor extends IntegrityMonitor } } - public static DroolsPDPIntegrityMonitor getInstance() throws Exception{ + public static DroolsPDPIntegrityMonitor getInstance() throws IntegrityMonitorException{ if(logger.isDebugEnabled()){ logger.debug("getInstance() called"); } if (im == null) { String msg = "No DroolsPDPIntegrityMonitor instance exists." + " Please use the method DroolsPDPIntegrityMonitor init(String configDir)"; - throw new Exception(msg); + throw new IntegrityMonitorException(msg); }else{ return im; }