Throw NotFoundException on MissingSchemaSource 00/106300/7
authorŠimon Ukuš <simon.ukus@pantheon.tech>
Wed, 31 May 2023 08:48:03 +0000 (10:48 +0200)
committerIvan Hrasko <ivan.hrasko@pantheon.tech>
Tue, 6 Jun 2023 08:32:16 +0000 (08:32 +0000)
commite2651d0ba62aefcdc4a10b71f73098c6e28cef0c
tree41ec73d99a64099b91ec9212d523be7b154a5b72
parentf7d9d095b0197762fdf15bb4f1e2d9e6eb394a0f
Throw NotFoundException on MissingSchemaSource

Throwing NotFoundException, instead of a more general
WebApplicationException, will return 404 status code to the client,
rather than 500 with the WebAppException.

JIRA: NETCONF-964
Change-Id: Ic72b068a477a98f618bf303c43d7deca94254f3e
Signed-off-by: Šimon Ukuš <simon.ukus@pantheon.tech>
netconf/yanglib/src/main/java/org/opendaylight/yanglib/impl/YangLibProvider.java