-
Type: Bug
-
Status: Done
-
Priority: High
-
Resolution: Done
-
Affects Version/s: None
-
Fix Version/s: 1.17.1
-
Component/s: appng-core
-
Labels:None
We have two possibilities here:
- support @ExceptionHandler/ @ControllerAdvice
- Requires a ExceptionHandlerExceptionResolver
- Would allow multiple Exception Handler Methods like
@ExceptionHandler(BusinessException.class) public ResponseEntity<?> handleError(Site site, Application application, Environment environment, HttpServletRequest request, HttpServletResponse response) {...}
- support custom ResponseEntityExceptionHandlers, maybe a custom one that also can take appNG Types like Site, Application, Environment as an argument.
See also http://www.baeldung.com/exception-handling-for-rest-with-spring
- relates to
-
APPNG-2158 Provide a HandlerMethodArgumentResolver for easier testing of @(Rest)Controllers
- Done