|
|
@ -54,12 +54,12 @@ public class RenExceptionHandler { |
|
|
|
*/ |
|
|
|
@ExceptionHandler(RenException.class) |
|
|
|
public Result handleRRException(RenException ex){ |
|
|
|
logger.error(ExceptionUtils.getErrorStackTrace(ex)); |
|
|
|
if (ex.getCode() > 8000) { |
|
|
|
Result result=new Result().error(ex.getCode()); |
|
|
|
result.setData(ex.getMsg()); |
|
|
|
return result; |
|
|
|
} |
|
|
|
logger.error(ExceptionUtils.getErrorStackTrace(ex)); |
|
|
|
Result result=new Result().error(); |
|
|
|
result.setData(ex.getMsg()); |
|
|
|
return result; |
|
|
|