[YANGTOOLS-1557] JsonParserStream does not intercept IllegalStateException Created: 14/Dec/23  Updated: 14/Dec/23  Resolved: 14/Dec/23

Status: Resolved
Project: yangtools
Component/s: codecs
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Medium
Reporter: Robert Varga Assignee: Robert Varga
Resolution: Won't Do Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 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.



 Comments   
Comment by Robert Varga [ 14/Dec/23 ]

This could break users. Let's focus on switching to checked exceptions instead, via YANGTOOLS-1415.

Generated at Wed Feb 07 20:56:30 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.