Use ErrorSeverity.elementBody() in RestconfError 35/107235/1
authorRobert Varga <robert.varga@pantheon.tech>
Thu, 3 Aug 2023 15:51:26 +0000 (17:51 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Thu, 3 Aug 2023 16:33:06 +0000 (18:33 +0200)
commit59bb0283277ae14364d8d0f187229b0e4c8613c6
tree11510589823596c4121ec1b91a95925c347e91db
parent30e9d351dba48a0a5a6e94e194b2f4eeeb5100ff
Use ErrorSeverity.elementBody() in RestconfError

ErrorSeverity provides the element body through a dedicated method, do
to use toLowerCase().

Change-Id: I5a036dc65de8b798f2dd0eb1121f27f00c4752c7
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit 6151f0444151183903debc231039dbf3183cd560)
restconf/restconf-common/src/main/java/org/opendaylight/restconf/common/errors/RestconfError.java