@ControllerAdvice public abstract class ControllerExceptionCatch extends Object
| Constructor and Description |
|---|
ControllerExceptionCatch() |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.http.ResponseEntity |
businessExceptionCatch(BusinessException e) |
org.springframework.http.ResponseEntity |
exceptionCatch(Exception e) |
org.springframework.http.ResponseEntity |
generateResponseInternal(ErrorInfo e) |
void |
registerException(Class<? extends Throwable> clz,
ErrorInfo errorInfo) |
@ResponseBody @ExceptionHandler(value=BusinessException.class) public org.springframework.http.ResponseEntity businessExceptionCatch(BusinessException e)
@ResponseBody @ExceptionHandler(value=java.lang.Exception.class) public org.springframework.http.ResponseEntity exceptionCatch(Exception e) throws Exception
Exceptionpublic org.springframework.http.ResponseEntity generateResponseInternal(ErrorInfo e)
Copyright © 2019. All rights reserved.