类 ExceptionAdvice


  • @RestControllerAdvice
    public class ExceptionAdvice
    extends java.lang.Object
    spring cloud的统一异常处理
    • 方法详细资料

      • methodNotSupport

        @ExceptionHandler(org.springframework.web.HttpRequestMethodNotSupportedException.class)
        @ResponseStatus(NOT_FOUND)
        public void methodNotSupport​(org.springframework.web.HttpRequestMethodNotSupportedException e)
      • argumentMissingHandle

        @ExceptionHandler(org.springframework.validation.BindException.class)
        public OutputDTO<java.lang.Void> argumentMissingHandle​(org.springframework.validation.BindException e)
      • argumentTypeHandler

        @ExceptionHandler(org.springframework.web.bind.MethodArgumentNotValidException.class)
        public OutputDTO<java.lang.Void> argumentTypeHandler​(org.springframework.web.bind.MethodArgumentNotValidException e)
      • noCacheHandler

        @ExceptionHandler(cn.flyelf.cache.core.exception.CacheNotExistException.class)
        public OutputDTO<java.lang.Void> noCacheHandler​(cn.flyelf.cache.core.exception.CacheNotExistException e)
      • concurrencyThreshold

        @ExceptionHandler(cn.flyelf.cache.spring.exception.ConcurrencyException.class)
        public OutputDTO<java.lang.Void> concurrencyThreshold​(cn.flyelf.cache.spring.exception.ConcurrencyException e)
      • exceptionHandle

        @ExceptionHandler(java.lang.Exception.class)
        public OutputDTO<java.lang.Void> exceptionHandle​(java.lang.Exception e)