spring-framework / org.springframework.web.servlet.mvc.method.annotation / ResponseEntityExceptionHandler / handleException

handleException

@ExceptionHandler([HttpRequestMethodNotSupportedException, HttpMediaTypeNotSupportedException, HttpMediaTypeNotAcceptableException, MissingPathVariableException, MissingServletRequestParameterException, ServletRequestBindingException, ConversionNotSupportedException, TypeMismatchException, HttpMessageNotReadableException, HttpMessageNotWritableException, MethodArgumentNotValidException, MissingServletRequestPartException, BindException, NoHandlerFoundException, AsyncRequestTimeoutException]) @Nullable fun handleException(ex: Exception, request: WebRequest): ResponseEntity<Any>

Provides handling for standard Spring MVC exceptions.

Parameters

ex - the target exception

request - the current request