Skip to content

Commit e77bb0c

Browse files
committed
Add a missing pass-through ctor for StreamReadException
1 parent 634de96 commit e77bb0c

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

src/main/java/com/fasterxml/jackson/core/exc/StreamReadException.java

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,15 @@ protected StreamReadException(JsonParser p, String msg, JsonLocation loc) {
4141
_processor = p;
4242
}
4343

44+
// @since 2.13
45+
protected StreamReadException(JsonParser p, String msg, JsonLocation loc,
46+
Throwable rootCause) {
47+
super(msg, loc, rootCause);
48+
_processor = p;
49+
}
50+
4451
protected StreamReadException(String msg, JsonLocation loc, Throwable rootCause) {
45-
super(msg);
46-
if (rootCause != null) {
47-
initCause(rootCause);
48-
}
49-
_location = loc;
52+
super(msg, loc, rootCause);
5053
}
5154

5255
/**

0 commit comments

Comments
 (0)