Class SpringExceptionHandler


  • @ControllerAdvice
    @Order(0)
    public class SpringExceptionHandler
    extends Object
    • Constructor Detail

      • SpringExceptionHandler

        public SpringExceptionHandler()
    • Method Detail

      • handleSpringExceptionNotFound

        @ExceptionHandler(org.springframework.web.servlet.NoHandlerFoundException.class)
        public final Object handleSpringExceptionNotFound​(Exception ex,
                                                          javax.servlet.http.HttpServletRequest httpServletRequest)
      • handleMaxUploadSizeExceededException

        @ExceptionHandler(org.springframework.web.multipart.MaxUploadSizeExceededException.class)
        public final Object handleMaxUploadSizeExceededException​(Exception ex,
                                                                 javax.servlet.http.HttpServletRequest httpServletRequest)
      • handleSpringException

        @ExceptionHandler({org.springframework.web.HttpRequestMethodNotSupportedException.class,org.springframework.web.HttpMediaTypeNotSupportedException.class,org.springframework.web.HttpMediaTypeNotAcceptableException.class,org.springframework.web.bind.MissingPathVariableException.class,org.springframework.web.bind.MissingServletRequestParameterException.class,org.springframework.web.bind.ServletRequestBindingException.class,org.springframework.beans.ConversionNotSupportedException.class,org.springframework.beans.TypeMismatchException.class,org.springframework.http.converter.HttpMessageNotReadableException.class,org.springframework.http.converter.HttpMessageNotWritableException.class,org.springframework.web.bind.MethodArgumentNotValidException.class,org.springframework.web.multipart.support.MissingServletRequestPartException.class,org.springframework.validation.BindException.class,org.springframework.web.context.request.async.AsyncRequestTimeoutException.class,javax.validation.ConstraintViolationException.class})
        public final Object handleSpringException​(Exception ex,
                                                  org.springframework.web.method.HandlerMethod handlerMethod)