resthub / resthub-spring-stack

RESThub Spring stack
http://resthub.org/spring-stack.html
Other
121 stars 66 forks source link

Simplify RESTHub Exception Handling #225

Closed bmeurant closed 10 years ago

bmeurant commented 10 years ago

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

bmeurant commented 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.