@RestControllerAdvice
public class ExceptionAdvice
extends java.lang.Object
| 构造器 | 说明 |
|---|---|
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> |
exceptionHandle(java.lang.Exception e) |
|
void |
methodNotSupport(org.springframework.web.HttpRequestMethodNotSupportedException e) |
|
OutputDTO<java.lang.Void> |
noCacheHandler(cn.flyelf.cache.core.exception.CacheNotExistException e) |
public ExceptionAdvice(ExceptionConfiguration configuration)
@ExceptionHandler(org.springframework.web.HttpRequestMethodNotSupportedException.class) @ResponseStatus(NOT_FOUND) public void methodNotSupport(org.springframework.web.HttpRequestMethodNotSupportedException e)
@ExceptionHandler(org.springframework.validation.BindException.class) public OutputDTO<java.lang.Void> argumentMissingHandle(org.springframework.validation.BindException e)
@ExceptionHandler(org.springframework.web.bind.MethodArgumentNotValidException.class) public OutputDTO<java.lang.Void> argumentTypeHandler(org.springframework.web.bind.MethodArgumentNotValidException e)
@ExceptionHandler(cn.flyelf.cache.core.exception.CacheNotExistException.class) public OutputDTO<java.lang.Void> noCacheHandler(cn.flyelf.cache.core.exception.CacheNotExistException e)
@ExceptionHandler(java.lang.Exception.class) public OutputDTO<java.lang.Void> exceptionHandle(java.lang.Exception e)