Class GeneralExceptionHandler


  • @Order(-2147483648)
    @ControllerAdvice
    public class GeneralExceptionHandler
    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
      org.springframework.http.ResponseEntity<java.lang.Object> handleException​(AuthException ex, org.springframework.web.context.request.WebRequest request)  
      org.springframework.http.ResponseEntity<java.lang.Object> handleException​(BizException ex, org.springframework.web.context.request.WebRequest request)  
      org.springframework.http.ResponseEntity<java.lang.Object> handleException​(PermissionException ex, org.springframework.web.context.request.WebRequest request)  
      org.springframework.http.ResponseEntity<java.lang.Object> handleException​(UnvarnishedFeignException ex, org.springframework.web.context.request.WebRequest request)  
      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<java.lang.Object> handleUncaughtException​(java.lang.Exception ex, org.springframework.web.context.request.WebRequest request)  
      • 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

      • GeneralExceptionHandler

        public GeneralExceptionHandler()
    • 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
      • handleException

        @ExceptionHandler(BizException.class)
        public org.springframework.http.ResponseEntity<java.lang.Object> handleException​(BizException ex,
                                                                                         org.springframework.web.context.request.WebRequest request)
      • handleException

        @ExceptionHandler(AuthException.class)
        public org.springframework.http.ResponseEntity<java.lang.Object> handleException​(AuthException ex,
                                                                                         org.springframework.web.context.request.WebRequest request)
      • handleException

        @ExceptionHandler(PermissionException.class)
        public org.springframework.http.ResponseEntity<java.lang.Object> handleException​(PermissionException ex,
                                                                                         org.springframework.web.context.request.WebRequest request)
      • handleUncaughtException

        @ExceptionHandler(java.lang.Exception.class)
        public org.springframework.http.ResponseEntity<java.lang.Object> handleUncaughtException​(java.lang.Exception ex,
                                                                                                 org.springframework.web.context.request.WebRequest request)