Discern exceptions when building LeafRefContext 98/71798/1
authorRobert Varga <robert.varga@pantheon.tech>
Fri, 4 May 2018 13:03:33 +0000 (15:03 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Fri, 4 May 2018 13:04:49 +0000 (15:04 +0200)
commitd285a420cd6d7ceb6b8cdd8651cc4800cdbc34f5
tree6aaf9a6682eb6eb54a309108b0ae0dfb91e5c291
parent6e93b710a0434fb2d5ccddfcaad9d64768cb68ee
Discern exceptions when building LeafRefContext

IOExceptions are unexpected and result in an IllegalStateException,
while LeafRefYangSyntaxErrorException indicates an inconsistent
schema context, hence results in an IllegalArgumentException.

Change-Id: I5282dc964f64af7a46794e3a02e219358fd95285
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
yang/yang-data-impl/src/main/java/org/opendaylight/yangtools/yang/data/impl/leafref/LeafRefContext.java