Throw SourceException instead of IllegalArgumentException 41/62341/2
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:20 +0000 (11:40 +0000)
commit4a6f8307db1a3e9f31608a73924f48ed2ea7dc6e
treead20b8fb1ca2454bf4a2049ddea88e8efde1239b
parent328a49bfb81b2edefe1fe6673df4fdaca27fbde7
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>
yang/yang-parser-impl/src/main/java/org/opendaylight/yangtools/yang/parser/stmt/rfc6020/TypeUtils.java