Authored by LUOXC

refactor

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