BUG-1026: do not mask unexpected exceptions 58/7158/1
authorRobert Varga <rovarga@cisco.com>
Sun, 18 May 2014 13:41:53 +0000 (15:41 +0200)
committerRobert Varga <rovarga@cisco.com>
Sun, 18 May 2014 14:29:03 +0000 (16:29 +0200)
commit6964d6c9c5bc644f6a48b0235ea8e4ef7c9102db
tree3caa73b743731cb0c4ca40b41eb12aad1cde3d6f
parent0594a8f6d4d19ab1a61e6dadf843706d75dd670f
BUG-1026: do not mask unexpected exceptions

This patch restructures the code such that we do not silently drop the
exception we may encounter during module info loading -- promote it
to an IllegalArgumentException.

This has the nice feature or also not masking any RuntimeExceptions we
may encounter.

Change-Id: I8a2c7108b589234c0c1350024dacb0d7f1ec4d72
Signed-off-by: Robert Varga <rovarga@cisco.com>
code-generator/binding-generator-impl/src/main/java/org/opendaylight/yangtools/sal/binding/generator/impl/BindingSchemaContextUtils.java