Use ErrorSeverity.elementBody() in RestconfError 39/108339/1
authorRobert Varga <robert.varga@pantheon.tech>
Thu, 3 Aug 2023 15:51:26 +0000 (17:51 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Wed, 11 Oct 2023 08:08:28 +0000 (10:08 +0200)
commit2915468a53d04e2c8143a42b733eb402012cfe08
tree8e92740c6764e751e6e15f826bfad0128b74c121
parent3143d86045c6e9e2ed8023516792955f5d10fad2
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)
(cherry picked from commit 6c23b4e0c9965dc54001ff9ad22568ab10f6bb34)
restconf/restconf-common/src/main/java/org/opendaylight/restconf/common/errors/RestconfError.java