Skip to content

Extend Global Exception handler with more exceptions #12

Description

@eeebbaandersson

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)

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions