Improve UnionXmlCodec error reporting 87/100287/1
authorRobert Varga <robert.varga@pantheon.tech>
Tue, 29 Mar 2022 21:54:19 +0000 (23:54 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Tue, 29 Mar 2022 21:54:19 +0000 (23:54 +0200)
commit5094c1c83fccb5b6462b437fa46aa77fbea723ff
tree64cb4f939393eafbab4c487c53fd21d8ed2a0b64
parent1812c072a4d5c3ba77d9e6c0c7b70f399a6f900d
Improve UnionXmlCodec error reporting

Collect the exceptions reported and add them as suppressed in case
we end up rejecting all values.

Change-Id: I6aa6d99d4a60426963dc30a1a5595b8ecd7a3bab
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
codec/yang-data-codec-xml/src/main/java/org/opendaylight/yangtools/yang/data/codec/xml/UnionXmlCodec.java