Skip to content

Commit 8092d8f

Browse files
authored
Fixes wrapping of IonException with StreamReadException (#314)
1 parent ae174e9 commit 8092d8f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ion/src/main/java/com/fasterxml/jackson/dataformat/ion/IonParser.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,7 @@ public JsonToken nextToken() throws JacksonException
508508
try {
509509
type = _reader.next();
510510
} catch (IonException e) {
511-
_constructReadException(e.getMessage(), e);
511+
throw _constructReadException(e.getMessage(), e);
512512
}
513513
if (type == null) {
514514
if (_streamReadContext.inRoot()) { // EOF?
@@ -530,7 +530,7 @@ public JsonToken nextToken() throws JacksonException
530530
// field name symbol cannot be resolved.
531531
_streamReadContext.setCurrentName(inStruct ? _reader.getFieldName() : null);
532532
} catch (UnknownSymbolException e) {
533-
_constructReadException(e.getMessage(), e);
533+
throw _constructReadException(e.getMessage(), e);
534534
}
535535
JsonToken t = _tokenFromType(type);
536536
// and return either field name first

0 commit comments

Comments
 (0)