Remove Exceptions.convertToRuntimeEx() 59/3459/2
authorGary Wu <gary.i.wu@huawei.com>
Fri, 14 Apr 2017 23:01:15 +0000 (16:01 -0700)
committerGary Wu <gary.i.wu@huawei.com>
Wed, 12 Jul 2017 19:03:10 +0000 (19:03 +0000)
commit6658660f5c1fad24af6b85cdf26f5fd3dca0346e
treeecbf936149961d0cbce4b180f5f1f8fdf2cfc15e
parentdd60339b06d252fcb1382aa97ab3d65b37dad021
Remove Exceptions.convertToRuntimeEx()

The uses of Exceptions.convertToRuntimeEx() had two problems:
1. The cast from IOException to RuntimeException will
   fail because they are incompatible types;
2. They make it unclear that an exception is being thrown.

This change replaces their uses with direct throws of
RuntimeExceptions.

Change-Id: I3af60da2bdd3230c568744f747a5910d797073c8
Signed-off-by: Gary Wu <gary.i.wu@huawei.com>
catalog-dao/src/main/java/org/openecomp/sdc/be/dao/api/ESGenericIdDAO.java
catalog-dao/src/main/java/org/openecomp/sdc/be/dao/api/ESGenericSearchDAO.java
catalog-dao/src/main/java/org/openecomp/sdc/be/dao/utils/Exceptions.java [deleted file]