Class RequestNotSupportedExceptionHandler

java.lang.Object
com.erudika.para.server.utils.RequestNotSupportedExceptionHandler

@Order(-2147483648) @ControllerAdvice public class RequestNotSupportedExceptionHandler extends Object
HttpRequestMethodNotSupportedException handler - suppress spammy log messages.
Author:
Alex Bogdanovski [[email protected]]
  • Field Details

  • Constructor Details

    • RequestNotSupportedExceptionHandler

      public RequestNotSupportedExceptionHandler()
      Creates the exception handler that customizes Spring MVC responses.
  • Method Details

    • setMessageSource

      public void setMessageSource(org.springframework.context.MessageSource arg0)
    • handleException

      @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.multipart.support.MissingServletRequestPartException.class,org.springframework.web.bind.ServletRequestBindingException.class,org.springframework.web.bind.MethodArgumentNotValidException.class,org.springframework.web.method.annotation.HandlerMethodValidationException.class,org.springframework.web.servlet.NoHandlerFoundException.class,org.springframework.web.servlet.resource.NoResourceFoundException.class,org.springframework.web.context.request.async.AsyncRequestTimeoutException.class,org.springframework.web.ErrorResponseException.class,org.springframework.web.multipart.MaxUploadSizeExceededException.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.validation.method.MethodValidationException.class,org.springframework.web.context.request.async.AsyncRequestNotUsableException.class}) @Nullable public final org.springframework.http.ResponseEntity<Object> handleException(Exception arg0, org.springframework.web.context.request.WebRequest arg1) throws Exception
      Throws:
      Exception