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.
Fixes wrapping of
IonException
withStreamReadException
.When this patch was merged from
2.14
tomaster
for #311, the calls towrapError(...)
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
throw
s in front of the calls to_constructReadException(...)
inIonParser
.