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