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>
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 382f01e..46bba91 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 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;
}