@RestControllerAdvice
@EnableCaching
public class ControllerExceptionAdvice
extends java.lang.Object
| 构造器和说明 |
|---|
ControllerExceptionAdvice() |
| 限定符和类型 | 方法和说明 |
|---|---|
Report |
handle(BaseClientException e) |
Report |
handle(BaseServerException e) |
Report |
handle(BaseServiceException e) |
Report |
handle(org.springframework.validation.BindException e) |
Report |
handle(java.lang.Exception e) |
Report |
handle(org.springframework.web.HttpMediaTypeNotSupportedException e) |
Report |
handle(org.springframework.http.converter.HttpMessageNotReadableException e) |
Report |
handle(org.springframework.web.HttpRequestMethodNotSupportedException e) |
Report |
handle(java.lang.IllegalArgumentException e) |
Report |
handle(org.springframework.web.bind.MethodArgumentNotValidException e) |
Report |
handle(org.springframework.web.method.annotation.MethodArgumentTypeMismatchException e) |
Report |
handle(org.springframework.web.bind.ServletRequestBindingException e) |
@ExceptionHandler(value=java.lang.Exception.class) @ResponseBody public Report handle(java.lang.Exception e)
@ExceptionHandler(value=java.lang.IllegalArgumentException.class) @ResponseBody public Report handle(java.lang.IllegalArgumentException e)
@ExceptionHandler(value=org.springframework.web.HttpMediaTypeNotSupportedException.class) @ResponseBody public Report handle(org.springframework.web.HttpMediaTypeNotSupportedException e)
@ExceptionHandler(value=org.springframework.web.HttpRequestMethodNotSupportedException.class) @ResponseBody public Report handle(org.springframework.web.HttpRequestMethodNotSupportedException e)
@ExceptionHandler(value=org.springframework.web.bind.MethodArgumentNotValidException.class) @ResponseBody public Report handle(org.springframework.web.bind.MethodArgumentNotValidException e)
@ExceptionHandler(value=org.springframework.web.method.annotation.MethodArgumentTypeMismatchException.class) @ResponseBody public Report handle(org.springframework.web.method.annotation.MethodArgumentTypeMismatchException e)
@ExceptionHandler(value=org.springframework.validation.BindException.class) @ResponseBody public Report handle(org.springframework.validation.BindException e)
@ExceptionHandler(value=org.springframework.http.converter.HttpMessageNotReadableException.class) @ResponseBody public Report handle(org.springframework.http.converter.HttpMessageNotReadableException e)
@ExceptionHandler(value=BaseServerException.class) @ResponseBody public Report handle(BaseServerException e)
@ExceptionHandler(value=BaseClientException.class) @ResponseBody public Report handle(BaseClientException e)
@ExceptionHandler(value=BaseServiceException.class) @ResponseBody public Report handle(BaseServiceException e)
@ExceptionHandler(value=org.springframework.web.bind.ServletRequestBindingException.class) @ResponseBody public Report handle(org.springframework.web.bind.ServletRequestBindingException e)
Copyright © 2019. All Rights Reserved.