@ExceptionHandler for Error gets called only if there's no mapping for Exception
Using spring-web-4.2.6, I have the following Controller and ExceptionHandler: @ControllerAdvice public class ExceptionsHandler { @ExceptionHandler(Exception.class) public ResponseEntity<ErrorDTO> HandleDefaultException(Exception ex) { ... } @ExceptionHandler(InternalError.class) public ResponseEntity<ErrorDTO> HandleInternalError(InternalError ex) { ... } } @RestController @RequestMapping("/myController") public class MyController { @RequestMapping(value = "/myAction", method = RequestMethod.POST) public boolean myAction() { throw new InternalError(""); } } For some reason, the