Adds an exception handler which passes the exception messages to the frontend. Provides a generic exception handler for all exceptions, as well as a specific handler for the HttpMessageNotReadableException, which occurs when null attributes are passed in a JSON object to the backend (example: A Create Review request includes a null title).
Adds an exception handler which passes the exception messages to the frontend. Provides a generic exception handler for all exceptions, as well as a specific handler for the
HttpMessageNotReadableException
, which occurs when null attributes are passed in a JSON object to the backend (example: A Create Review request includes a null title).