Throw SourceException instead of IllegalArgumentException 61/62361/1
authorRobert Varga <robert.varga@pantheon.tech>
Sat, 26 Aug 2017 16:50:55 +0000 (18:50 +0200)
committerRobert Varga <nite@hq.sk>
Mon, 28 Aug 2017 11:40:26 +0000 (11:40 +0000)
commit9be7f96ec29f2ba9782085d5029420889a6d9812
treeddd6c0e9285fd362c6b811ef45c0ee291fba8956
parent201595da1577918362967eae9f0f490729dccae8
Throw SourceException instead of IllegalArgumentException

TypeUtils already considers StatementSourceReference, so instead
of home-grown format use SourceException.throwIf().

Change-Id: Ifc81db735d72bb7c98b94c66ac013f8dcc47413c
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit 4a6f8307db1a3e9f31608a73924f48ed2ea7dc6e)
yang/yang-parser-impl/src/main/java/org/opendaylight/yangtools/yang/parser/stmt/rfc6020/TypeUtils.java