|
|
@ -53,7 +53,10 @@ public class RenExceptionHandler { |
|
|
|
@ExceptionHandler(RenException.class) |
|
|
|
public Result handleRRException(RenException ex){ |
|
|
|
logger.error(ExceptionUtils.getErrorStackTrace(ex)); |
|
|
|
return new Result().error(); |
|
|
|
Result result=new Result().error(); |
|
|
|
result.setData(ex.getMsg()); |
|
|
|
return result; |
|
|
|
// return new Result().error();
|
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
@ -64,7 +67,10 @@ public class RenExceptionHandler { |
|
|
|
@ExceptionHandler(RuntimeException.class) |
|
|
|
public Result handleRuntimeException(RuntimeException ex){ |
|
|
|
logger.error(ExceptionUtils.getErrorStackTrace(ex)); |
|
|
|
return new Result().error(); |
|
|
|
Result result=new Result().error(); |
|
|
|
result.setData(ex.getMessage()); |
|
|
|
return result; |
|
|
|
// return new Result().error();
|
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
@ -87,7 +93,10 @@ public class RenExceptionHandler { |
|
|
|
public Result handleException(Exception ex){ |
|
|
|
logger.error(ExceptionUtils.getErrorStackTrace(ex)); |
|
|
|
// saveLog(ex);
|
|
|
|
return new Result().error(); |
|
|
|
Result result=new Result().error(); |
|
|
|
result.setData(ex.getMessage()); |
|
|
|
return result; |
|
|
|
// return new Result().error();
|
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|