As there is GUI part involved in the application its a good practice to have global exception handler. In spring you can have a controller with annotation @ControllerAdvice which can serve as global exception handler. This ensures no exception is reflected on UI directly.
As there is GUI part involved in the application its a good practice to have global exception handler. In spring you can have a controller with annotation @ControllerAdvice which can serve as global exception handler. This ensures no exception is reflected on UI directly.