Add leaf context when value deserialization fails 79/33379/1
authorRobert Varga <robert.varga@pantheon.sk>
Fri, 22 Jan 2016 17:56:06 +0000 (18:56 +0100)
committerRobert Varga <nite@hq.sk>
Fri, 22 Jan 2016 17:58:29 +0000 (17:58 +0000)
commit07100904d0ac0aa25288187526f8f25466b84cc2
treed7aaa876e4db936cd03ca2f62f939e975134e42b
parentf3a3253eb4a5033515898723fcee5a9819135729
Add leaf context when value deserialization fails

When the codecs throw an IllegalArgumentException, it is useful to know
which leaf has failed to parse. Catch the exception and chain it to an
exception which gives more context.

Change-Id: I6466b5d86294a1f0116477081267a80c0a696bfb
Signed-off-by: Robert Varga <robert.varga@pantheon.sk>
yang/yang-data-impl/src/main/java/org/opendaylight/yangtools/yang/data/impl/schema/transform/dom/parser/LeafNodeDomParser.java