JsonParserStream does not intercept IllegalStateException

Description

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.

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.

Won't Do

Details

Assignee

Reporter

Components

Priority

Created December 14, 2023 at 9:10 PM
Updated December 14, 2023 at 9:14 PM
Resolved December 14, 2023 at 9:14 PM