summaryrefslogtreecommitdiffstats
path: root/feature-state-management
diff options
context:
space:
mode:
authorJim Hahn <jrh3@att.com>2018-02-19 11:17:19 -0500
committerJim Hahn <jrh3@att.com>2018-02-19 11:18:45 -0500
commit1708e9a45cb88571613c10b68d392811b2b3f0f4 (patch)
tree35b0298b93c7cfcf4129c93f59cb602bb1a4b908 /feature-state-management
parentbd6c437e3ecbd47dc7760e4570348fe555ab078d (diff)
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 <jrh3@att.com>
Diffstat (limited to 'feature-state-management')
-rw-r--r--feature-state-management/src/main/java/org/onap/policy/drools/statemanagement/DroolsPDPIntegrityMonitor.java4
1 files changed, 2 insertions, 2 deletions
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;
}