Remove RestconfDocumentedException.status 34/108534/1
authorRobert Varga <robert.varga@pantheon.tech>
Fri, 20 Oct 2023 10:44:40 +0000 (12:44 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Fri, 20 Oct 2023 12:10:51 +0000 (14:10 +0200)
commit162c76b533b674fa429957458d98e599f30961cf
tree1ab628d8f19bb53c1dc8895d56d75f2fd0af9db4
parent6f54a23c5a38dc4aec899131963468f6ab91f3ed
Remove RestconfDocumentedException.status

The actual status is derived from the errors reported, which now have to
have at least one element. RestconfDocumentedExceptionMapper is taught
to just infer the status.

JIRA: NETCONF-1188
Change-Id: I90b367a8fa1bf995e3d47d8b9f581a29f76eb2f2
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
restconf/restconf-common/src/main/java/org/opendaylight/restconf/common/errors/RestconfDocumentedException.java
restconf/restconf-nb/src/main/java/org/opendaylight/restconf/nb/rfc8040/jersey/providers/errors/RestconfDocumentedExceptionMapper.java
restconf/restconf-nb/src/test/java/org/opendaylight/restconf/nb/rfc8040/databind/AbstractResourceBodyTest.java
restconf/restconf-nb/src/test/java/org/opendaylight/restconf/nb/rfc8040/jersey/providers/errors/RestconfDocumentedExceptionMapperTest.java