|
|
@ -26,8 +26,9 @@ public class ExceptionHandlerAdvice {
|
|
|
|
@ExceptionHandler({Exception.class})
|
|
|
|
@ExceptionHandler({Exception.class})
|
|
|
|
@ResponseStatus(HttpStatus.OK)
|
|
|
|
@ResponseStatus(HttpStatus.OK)
|
|
|
|
public BasicResultVO<String> exceptionResponse(Exception e) {
|
|
|
|
public BasicResultVO<String> exceptionResponse(Exception e) {
|
|
|
|
log.error(Throwables.getStackTrace(e));
|
|
|
|
String errStackStr = Throwables.getStackTrace(e);
|
|
|
|
return BasicResultVO.fail(RespStatusEnum.ERROR_500, "\r\n" + Throwables.getStackTrace(e) + "\r\n");
|
|
|
|
log.error(errStackStr);
|
|
|
|
|
|
|
|
return BasicResultVO.fail(RespStatusEnum.ERROR_500, "\r\n" + errStackStr + "\r\n");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@ExceptionHandler({CommonException.class})
|
|
|
|
@ExceptionHandler({CommonException.class})
|
|
|
|