Authored by LUOXC

refactor

... ... @@ -175,6 +175,10 @@ public class CouponServiceImpl implements ICouponService {
logger.info("happened serviceException,uid:{},couponTokens:{}", uid, couponTokens, ex);
couponSendBo.setErrCode(ex.getCode());
couponSendBo.setErrMsg(ex.getServiceError().getMappingGatewayError().getRight());
} catch (UfoServiceException e) {
logger.warn("happened ufoServiceException,uid:{},couponTokens:{}", uid, couponTokens, e);
couponSendBo.setErrCode(e.getCode());
couponSendBo.setErrMsg(e.getErrorMessage());
} catch (Exception e) {
logger.warn("happened exception,uid:{},couponTokens:{}", uid, couponTokens, e);
couponSendBo.setErrCode(ServiceError.PROMOTION_COUPON_SEND_FAIL.getCode());
... ...