I'm trying to make a global exception handler, below is the code for that. Other exceptions are getting caught but MissingServletRequestParameterException isn't. I tried overriding handleMissingServletRequestParameter as well but didn't had much success. Any idea why the exception is not handled?
public class RestResponseEntityExceptionHandler extends ResponseEntityExceptionHandler {
@ExceptionHandler(value = {Exception.class})
public ResponseEntity<Object> handleOtherExceptions(final Exception ex, final WebRequest req) {
// handle other exceptions
}
}