Clean up exception handling 46/109146/1
authorRobert Varga <robert.varga@pantheon.tech>
Sat, 2 Dec 2023 09:30:33 +0000 (10:30 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Sat, 2 Dec 2023 09:44:13 +0000 (10:44 +0100)
commit195a977a0581c025fcd6dc33da7b3f2fef1123de
treea8d1be78572ea74f0a61238899ba5ae2317779a2
parent32fad0d2b1161304ff9a9d18ea2f4e72dff591d5
Clean up exception handling

There are a number of places where we allow RestconfDocumentedException
to be thrown, but we are returning a RestconfFuture. Make sure we catch
the exception and propagate it through the future.

JIRA: NETCONF-1157
Change-Id: Ia3a67e9469179302c0a9aabbc420a7a05fc8f08d
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
restconf/restconf-nb/src/main/java/org/opendaylight/restconf/nb/rfc8040/rests/transactions/NetconfRestconfStrategy.java
restconf/restconf-nb/src/main/java/org/opendaylight/restconf/nb/rfc8040/rests/transactions/RestconfStrategy.java
restconf/restconf-nb/src/main/java/org/opendaylight/restconf/server/mdsal/MdsalRestconfServer.java
restconf/restconf-nb/src/main/java/org/opendaylight/restconf/server/mdsal/streams/notif/CreateNotificationStreamRpc.java