You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently calling the .body method (or injecting it) and sending invalid content to the endpoint throws a generic java.text.ParseException or MapperWrongTypeException from abstract-data. The stacktrace is hard to debug since it doesn't contain any context (endpoint, invalid data, etc.)
Instead we should throw an exception that contains more context and can be properly handled in the exception handler and responded to.
Invalid request body throws a specific exception
The default exception handler, responds with 400
The text was updated successfully, but these errors were encountered:
Currently calling the .body method (or injecting it) and sending invalid content to the endpoint throws a generic java.text.ParseException or MapperWrongTypeException from abstract-data. The stacktrace is hard to debug since it doesn't contain any context (endpoint, invalid data, etc.)
Instead we should throw an exception that contains more context and can be properly handled in the exception handler and responded to.
The text was updated successfully, but these errors were encountered: