Closed bmeurant closed 10 years ago
Nothing to improve: @ControllerAdvice improvements allow to limit ExceptionHandling to a subset of controllers holding an annotation, inheriting from a class or interface or defined in a given base package.
For Resthub, we think that we need consistency in client application ExceptionHandling: application controller must handle commons exceptions defined in Resthub even if it does not extend Resthub RestController.
So keep as is.
Once switch to spring 4 (cf. #220), refactor exception handling using new @ControllerAdvice capacities
http://www.javacodegeeks.com/2013/11/controlleradvice-improvements-in-spring-4.html