Report, not discard, caught exception in ctor 57/106557/2
authorLott, Christopher (cl778h) <cl778h@att.com>
Thu, 23 Apr 2020 19:57:53 +0000 (15:57 -0400)
committerLott, Christopher (cl778h) <cl778h@att.com>
Thu, 23 Apr 2020 20:04:37 +0000 (16:04 -0400)
commit8c193243356e909d0210036006aa9416c6455d00
treecf15d12ef224a5c12a06f78779d713ba68a62173
parentd9c58a74a9a791101e45ea01ee46feb827d2fa16
Report, not discard, caught exception in ctor

The PortalRestCentralServiceImpl constructor instantiates a class by
name then calls methods on the new object.  The ctor uses try/catch
but if an exception occurs, the ctor discards that exception and
throws ClassCastException with a vague message.  Change to throw
ServletException and include the cause exception.

Change-Id: I4f9f0c03026cedff5e65fb904f24eb3f6b658fac
Issue-ID: PORTAL-865
Signed-off-by: Lott, Christopher (cl778h) <cl778h@att.com>
ecomp-sdk/epsdk-fw/src/main/java/org/onap/portalsdk/core/onboarding/crossapi/PortalRestAPICentralServiceImpl.java