Class ValidationAwareRestExceptionHandlers

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected ResourceBundle errorMessageBundle  
      • Fields inherited from class org.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandler

        logger, PAGE_NOT_FOUND_LOG_CATEGORY, pageNotFoundLogger
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.springframework.http.ResponseEntity<Object> handleGeneralException​(Exception ex, org.springframework.web.context.request.WebRequest webRequest)  
      protected org.springframework.http.ResponseEntity<Object> handleHttpMessageNotReadable​(org.springframework.http.converter.HttpMessageNotReadableException ex, org.springframework.http.HttpHeaders headers, org.springframework.http.HttpStatus status, org.springframework.web.context.request.WebRequest webRequest)  
      protected org.springframework.http.ResponseEntity<Object> handleMethodArgumentNotValid​(org.springframework.web.bind.MethodArgumentNotValidException ex, org.springframework.http.HttpHeaders headers, org.springframework.http.HttpStatus status, org.springframework.web.context.request.WebRequest request)  
      org.springframework.http.ResponseEntity<Object> handleValidationException​(ValidationException ex, org.springframework.web.context.request.WebRequest request)  
      void setErrorMessageBundle​(ResourceBundle errorMessageBundle)  
      • Methods inherited from class org.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandler

        handleAsyncRequestTimeoutException, handleBindException, handleConversionNotSupported, handleException, handleHttpMediaTypeNotAcceptable, handleHttpMediaTypeNotSupported, handleHttpMessageNotWritable, handleHttpRequestMethodNotSupported, handleMissingPathVariable, handleMissingServletRequestParameter, handleMissingServletRequestPart, handleNoHandlerFoundException, handleServletRequestBindingException, handleTypeMismatch
    • Constructor Detail

      • ValidationAwareRestExceptionHandlers

        public ValidationAwareRestExceptionHandlers()
    • Method Detail

      • setErrorMessageBundle

        public void setErrorMessageBundle​(ResourceBundle errorMessageBundle)
      • handleHttpMessageNotReadable

        protected org.springframework.http.ResponseEntity<Object> handleHttpMessageNotReadable​(org.springframework.http.converter.HttpMessageNotReadableException ex,
                                                                                               org.springframework.http.HttpHeaders headers,
                                                                                               org.springframework.http.HttpStatus status,
                                                                                               org.springframework.web.context.request.WebRequest webRequest)
        Overrides:
        handleHttpMessageNotReadable in class org.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandler
      • handleMethodArgumentNotValid

        protected org.springframework.http.ResponseEntity<Object> handleMethodArgumentNotValid​(org.springframework.web.bind.MethodArgumentNotValidException ex,
                                                                                               org.springframework.http.HttpHeaders headers,
                                                                                               org.springframework.http.HttpStatus status,
                                                                                               org.springframework.web.context.request.WebRequest request)
        Overrides:
        handleMethodArgumentNotValid in class org.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandler