Skip to content

Commit

Permalink
RESTEASY-2106 Don't swallow JSON binding exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
gsmet authored and asoldano committed Jan 21, 2019
1 parent c295220 commit 1878e85
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -85,7 +85,7 @@ public Object readFrom(Class<Object> type, Type genericType,
return null;
}
// detail text provided in logger message
throw new ProcessingException(Messages.MESSAGES.jsonBDeserializationError(e, e.getMessage()));
throw new ProcessingException(Messages.MESSAGES.jsonBDeserializationError(e, e.getMessage()), e);
}
}

Expand Down Expand Up @@ -153,7 +153,7 @@ public void flush() throws IOException {
entityStream.flush();
} catch (Throwable e)
{
throw new ProcessingException(Messages.MESSAGES.jsonBSerializationError(e.toString()));
throw new ProcessingException(Messages.MESSAGES.jsonBSerializationError(e.toString()), e);
}
}

Expand Down

0 comments on commit 1878e85

Please sign in to comment.