BUG-1026: do not mask unexpected exceptions
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)
commitfe301c4df40c228fcf4c81193ddbda251b009df5
tree521e47cbb78c0971e624336b7ffb8f4150263668
parent290a82f5caf240375aa80e03e9139c97b3c0c36a
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