JsonParserStream does not intercept IllegalStateException
Description
Environment
None
Activity
Show:
Robert Varga December 14, 2023 at 9:14 PM
This could break users. Let's focus on switching to checked exceptions instead, via https://lf-opendaylight.atlassian.net/browse/YANGTOOLS-1415#icft=YANGTOOLS-1415.
JsonParserStream is using IllegalStateException internally, but does not intercept it, which leads users to use blanket catch blocks to deal with the exceptions leaking.
Improve the situation by intercepting IllegalStateException throws and mapping them to JsonParserExceptions.