GlobalExceptionHandler mechanism centralizes the exception handling and return an appropriate response. Instead of just getting “Internal Server Error” we also get log message regarding what has gone wrong.
Step 1 → Create an exception which extends ...