DEV Community

Discussion on: Handle Spring Exceptions Like A Pro

Collapse
 
gorynych profile image
Stepan Mozyra

Using of @ControllerAdvice as an idea - it's ok. But the problem of Spring' implementation is that there could be only one @ControllerAdvice with @ExceptionHandler ((. So, this class become really huge (from the responsibility point view, of course).

Collapse
 
jarjanazy profile image
Abdulcelil Cercenazi

yes that is certainly a downside