Handle NetconfDocumentedExceptions correctly 18/96318/1
authorTomas Cere <tomas.cere@pantheon.tech>
Tue, 1 Jun 2021 08:41:51 +0000 (10:41 +0200)
committerRobert Varga <nite@hq.sk>
Wed, 2 Jun 2021 10:06:15 +0000 (10:06 +0000)
commit085b8e7324b78e8a786cd8465bef06615be16574
tree226d917fb2e3c801cf146dac0737e72247d9da92
parent118069a5a280a769c70dd93ae7ab32382d670c52
Handle NetconfDocumentedExceptions correctly

These need to be wrapped in TransactionCommitFailedException
so they are handled correctly, so restconf can map these and
return correct status code on failure.

JIRA: NETCONF-777
Change-Id: Id4833bfe46da6f97a216163452dd2a44af599063
Signed-off-by: Tomas Cere <tomas.cere@pantheon.tech>
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit 6003f0788533a61a3e2a0f16dff94f618379677b)
restconf/restconf-nb-rfc8040/src/main/java/org/opendaylight/restconf/nb/rfc8040/rests/transactions/NetconfRestconfTransaction.java