From 1708e9a45cb88571613c10b68d392811b2b3f0f4 Mon Sep 17 00:00:00 2001 From: Jim Hahn Date: Mon, 19 Feb 2018 11:17:19 -0500 Subject: 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 --- .../onap/policy/drools/statemanagement/DroolsPDPIntegrityMonitor.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'feature-state-management/src/main/java') 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; } -- cgit 1.2.3-korg