@ControllerAdvice
public class MpaasExceptionHandler
extends org.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandler
| 构造器和说明 |
|---|
MpaasExceptionHandler() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected org.springframework.http.ResponseEntity<Object> |
handleBusinessException(RuntimeException ex,
org.springframework.web.context.request.WebRequest request)
处理业务异常返回200
|
protected org.springframework.http.ResponseEntity<Object> |
handleException(RuntimeException ex,
org.springframework.web.context.request.WebRequest request)
处理业务异常返回200
|
protected org.springframework.http.ResponseEntity<Object> |
handleRuntimeException(RuntimeException ex,
org.springframework.web.context.request.WebRequest request)
处理系统异常返回500
|
handleAsyncRequestTimeoutException, handleBindException, handleConversionNotSupported, handleException, handleExceptionInternal, handleHttpMediaTypeNotAcceptable, handleHttpMediaTypeNotSupported, handleHttpMessageNotReadable, handleHttpMessageNotWritable, handleHttpRequestMethodNotSupported, handleMethodArgumentNotValid, handleMissingPathVariable, handleMissingServletRequestParameter, handleMissingServletRequestPart, handleNoHandlerFoundException, handleServletRequestBindingException, handleTypeMismatch@ExceptionHandler(value=MpaasRuntimeException.class) protected org.springframework.http.ResponseEntity<Object> handleRuntimeException(RuntimeException ex, org.springframework.web.context.request.WebRequest request)
ex - request - @ExceptionHandler(value=MpaasBusinessException.class) protected org.springframework.http.ResponseEntity<Object> handleBusinessException(RuntimeException ex, org.springframework.web.context.request.WebRequest request)
ex - request - @ExceptionHandler(value=java.lang.Exception.class) protected org.springframework.http.ResponseEntity<Object> handleException(RuntimeException ex, org.springframework.web.context.request.WebRequest request)
ex - request - Copyright © 2021. All rights reserved.