Do not loose cause when wrapping DocumentedException in NetconfDocumentedException 47/45647/1
authorAlexis de Talhouët <adetalhouet@inocybe.com>
Thu, 15 Sep 2016 20:56:58 +0000 (16:56 -0400)
committerAlexis de Talhouët <adetalhouet@inocybe.com>
Thu, 15 Sep 2016 20:59:07 +0000 (16:59 -0400)
commit3854185f7ab43520019caf1a9087ebaeb9103ffd
tree5e9703a39db10e53dbd05dfdec61fc7b4c899f37
parent61d053cd7e3fa0cfc4b7456aabbcacd2e65126fc
Do not loose cause when wrapping DocumentedException in NetconfDocumentedException

DocumentedException has a constructor allowing to define the Throwable/Exception,
but the wrapping done in NetconfDocumentedException is loosing this information.
This patch makes sure we propagate the exception correctly.

Change-Id: Icf8bd3f71e5e781e0358c2219f3083ea455dfb32
Signed-off-by: Alexis de Talhouët <adetalhouet@inocybe.com>
netconf/netconf-api/src/main/java/org/opendaylight/netconf/api/NetconfDocumentedException.java