try {
return jsonReader.read(entityStream);
} catch (UnsupportedFormatException e) {
- throw new WebApplicationException(Response.status(Response.Status.BAD_REQUEST)
+ throw new WebApplicationException(e,Response.status(Response.Status.BAD_REQUEST)
.entity(e.getMessage()).build());
}
}