Right now the Global Exception handler catches:
- UnauthorizedException (status code 403/FORBIDDEN )
- EntityNotFoundException (status code 404/NOT FOUND )
In VIsaService some methods throws IllegalArgumentException, this should also be caught by the handler.
Suggested fix:
- public String handleBadRequest --> catches IllegalArgumentException with ResponseStatus (HttpStatus.BAD_REQUEST)
Right now the Global Exception handler catches:
In VIsaService some methods throws IllegalArgumentException, this should also be caught by the handler.
Suggested fix: