NickPriv / FryRankBackend

A back-end Java application allowing users to create and view reviews for french fries at restaurants
https://fryrank.oxyserver.com
0 stars 0 forks source link

Add exception handler which handles invalid requests and generic exceptions #45

Closed NickPriv closed 7 months ago

NickPriv commented 7 months ago

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).