Report data-missing when an invalid stream is requested 42/97142/2
authorRobert Varga <robert.varga@pantheon.tech>
Wed, 11 Aug 2021 13:41:54 +0000 (15:41 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Wed, 11 Aug 2021 13:48:58 +0000 (15:48 +0200)
commit587da7df15b8d971bb434a5e96023cb982b09939
tree2155b2f2ea344bc08547b77a15e9a217ba73d006
parenteefc2a4049b04c6c34737d80125e4a20e2ecaec3
Report data-missing when an invalid stream is requested

We should not be throwing a random IAE, but rather use a
RestconfDocumentedException to report the correct status.

JIRA: NETCONF-802
Change-Id: I4ac0a24f0acb059f08d14ab0abd4021e91b0d07b
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
restconf/restconf-nb-rfc8040/src/main/java/org/opendaylight/restconf/nb/rfc8040/rests/services/impl/SubscribeToStreamUtil.java