Skip to content

Commit

Permalink
Merge pull request #19246 from andreas-eberle/forward-mismatched-inpu…
Browse files Browse the repository at this point in the history
…t-exception-server-reader

Add causing exception to WebApplicationException when jackson parsing fails in resteasy reactive server jackson reader
  • Loading branch information
geoand authored Aug 5, 2021
2 parents e7a445d + 41b754f commit 409f400
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public Object readFrom(Class<Object> type, Type genericType, Annotation[] annota
try {
return doReadFrom(type, genericType, entityStream);
} catch (MismatchedInputException e) {
throw new WebApplicationException(Response.Status.BAD_REQUEST);
throw new WebApplicationException(e, Response.Status.BAD_REQUEST);
}
}

Expand Down

0 comments on commit 409f400

Please sign in to comment.