Class RestExceptionHandler


  • @Order(-2147483648)
    @RestControllerAdvice
    public class RestExceptionHandler
    extends org.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandler
    • Field Summary

      • 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
      protected org.springframework.http.ResponseEntity<java.lang.Object> handleExceptionInternal​(java.lang.Exception ex, java.lang.Object body, org.springframework.http.HttpHeaders headers, org.springframework.http.HttpStatus status, org.springframework.web.context.request.WebRequest request)  
      org.springframework.http.ResponseEntity<?> handleResourceFoundException​(ResourceFoundException rfe)  
      org.springframework.http.ResponseEntity<?> handleResourceNotFoundException​(ResourceNotFoundException rnfe)  
      • Methods inherited from class org.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandler

        handleAsyncRequestTimeoutException, handleBindException, handleConversionNotSupported, handleException, handleHttpMediaTypeNotAcceptable, handleHttpMediaTypeNotSupported, handleHttpMessageNotReadable, handleHttpMessageNotWritable, handleHttpRequestMethodNotSupported, handleMethodArgumentNotValid, handleMissingPathVariable, handleMissingServletRequestParameter, handleMissingServletRequestPart, handleNoHandlerFoundException, handleServletRequestBindingException, handleTypeMismatch
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RestExceptionHandler

        public RestExceptionHandler()
    • Method Detail

      • handleExceptionInternal

        protected org.springframework.http.ResponseEntity<java.lang.Object> handleExceptionInternal​(java.lang.Exception ex,
                                                                                                    java.lang.Object body,
                                                                                                    org.springframework.http.HttpHeaders headers,
                                                                                                    org.springframework.http.HttpStatus status,
                                                                                                    org.springframework.web.context.request.WebRequest request)
        Overrides:
        handleExceptionInternal in class org.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandler