Skip to content

Fixes wrapping of IonException with StreamReadException #314

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 5, 2022

Conversation

popematt
Copy link
Contributor

@popematt popematt commented Mar 4, 2022

Fixes wrapping of IonException with StreamReadException.

When this patch was merged from 2.14 to master for #311, the calls to wrapError(...) were replaced with calls to _constructReadException(...).

However, the behavior of these two methods is not the same—_wrapError(...) throws the new exception whereas _constructReadException(...) returns the new exception.

This PR adds the necessary throws in front of the calls to _constructReadException(...) in IonParser.

@cowtowncoder
Copy link
Member

cowtowncoder commented Mar 5, 2022

Lol. Yes, definitely my bad. Thank you for pointing out the obvious problem & providing the fix.

A bit embarrassing since I have done conversions earlier and forgot this obvious difference.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants