Skip to content

Commit

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

Add causing exception to WebApplicationException when jackson parsing fails in resteasy reactive
  • Loading branch information
geoand authored Aug 5, 2021
2 parents 2c73415 + 9d2165a commit e7a445d
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 e7a445d

Please sign in to comment.