类 ExceptionAdvice
- java.lang.Object
-
- cn.flyelf.cache.sample.advice.ExceptionAdvice
-
@RestControllerAdvice public class ExceptionAdvice extends java.lang.Objectspring cloud的统一异常处理
-
-
构造器概要
构造器 构造器 说明 ExceptionAdvice(ExceptionConfiguration configuration)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 OutputDTO<java.lang.Void>argumentMissingHandle(org.springframework.validation.BindException e)OutputDTO<java.lang.Void>argumentTypeHandler(org.springframework.web.bind.MethodArgumentNotValidException e)OutputDTO<java.lang.Void>concurrencyThreshold(cn.flyelf.cache.spring.exception.ConcurrencyException e)OutputDTO<java.lang.Void>exceptionHandle(java.lang.Exception e)voidmethodNotSupport(org.springframework.web.HttpRequestMethodNotSupportedException e)OutputDTO<java.lang.Void>noCacheHandler(cn.flyelf.cache.core.exception.CacheNotExistException e)
-
-
-
构造器详细资料
-
ExceptionAdvice
public ExceptionAdvice(ExceptionConfiguration configuration)
-
-
方法详细资料
-
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)
-
-