exit jvm when detecting configuration problems 56/111656/2
authorjhh <jorge.hernandez-herrero@att.com>
Mon, 24 Aug 2020 18:09:58 +0000 (13:09 -0500)
committerjhh <jorge.hernandez-herrero@att.com>
Mon, 24 Aug 2020 18:31:56 +0000 (13:31 -0500)
commit13d8a3204013f1c0bc02ddede96ab37ac3d64129
tree23e177ae2def54565057fa4470080899ddd083fb
parent3254c7d85a6540bc3590dbe5559fd4dd55acd825
exit jvm when detecting configuration problems

It follows the same approach that in other policy
components by throwing a runtime-exception vs
System.exit(x).

Issue-ID: POLICY-2752
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Change-Id: Iba508fc7095b060373742849e394c8fdd2a2334f
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
policy-management/src/main/java/org/onap/policy/drools/system/Main.java
policy-management/src/main/java/org/onap/policy/drools/system/PolicyDroolsPdpRuntimeException.java [new file with mode: 0644]
policy-management/src/test/java/org/onap/policy/drools/system/PolicyDroolsPdpRuntimeExceptionTest.java [new file with mode: 0644]