@ControllerAdvice @ResponseBody public class CommonExceptionHandler extends Object
| 构造器和说明 |
|---|
CommonExceptionHandler() |
| 限定符和类型 | 方法和说明 |
|---|---|
org.springframework.http.ResponseEntity |
httpException(HttpException e) |
org.springframework.http.ResponseEntity |
noAuth(AuthException e) |
org.springframework.http.ResponseEntity |
paramException(ParamException e) |
@ExceptionHandler(value=ParamException.class) public org.springframework.http.ResponseEntity paramException(ParamException e)
@ExceptionHandler(value=HttpException.class) public org.springframework.http.ResponseEntity httpException(HttpException e)
@ExceptionHandler(value=AuthException.class) public org.springframework.http.ResponseEntity noAuth(AuthException e)
Copyright © 2019. All rights reserved.