Bug 4540: Yang parser exceptions should follow consistent path
Replaced FileInputStream with NamedFileInputStream
in order to provide source path.
Replaced several standard Java exceptions with
yang-parser-impl exceptions where appropriate.
Added StatementSourceReference object into error messages.
Code refactoring based on codestyle rules.
Change-Id: I7e0c80d1d1c4644fa8c61a420ba0055ae84d2398
Signed-off-by: Igor Foltin <ifoltin@cisco.com>
(cherry picked from commit
afc9771f12441ce707dac07ad282fbbd4022bfb2)