Authored by chenchao

throw out exception if occur

1 package com.yohoufo.order.service.impl; 1 package com.yohoufo.order.service.impl;
2 2
3 import com.alibaba.fastjson.JSONObject; 3 import com.alibaba.fastjson.JSONObject;
4 -import com.google.common.base.Throwables;  
5 import com.yoho.error.ServiceError; 4 import com.yoho.error.ServiceError;
6 import com.yoho.error.exception.ServiceException; 5 import com.yoho.error.exception.ServiceException;
7 import com.yohobuy.ufo.model.order.bo.CustomsClearanceResult; 6 import com.yohobuy.ufo.model.order.bo.CustomsClearanceResult;
@@ -205,7 +204,7 @@ public class BuyerOrderMetaServiceImpl implements IBuyerOrderMetaService { @@ -205,7 +204,7 @@ public class BuyerOrderMetaServiceImpl implements IBuyerOrderMetaService {
205 logger.warn("BuyerOrderMeta4PlatformController updateDeliveryAddress not allow status {} param req is {}",buyerOrder.getStatus(), req); 204 logger.warn("BuyerOrderMeta4PlatformController updateDeliveryAddress not allow status {} param req is {}",buyerOrder.getStatus(), req);
206 throw new UfoServiceException(400, "订单状态不允许变更地址"); 205 throw new UfoServiceException(400, "订单状态不允许变更地址");
207 } 206 }
208 - try { 207 +
209 208
210 AddressInfo changedAddress = JSONObject.parseObject(addressOfJson, AddressInfo.class); 209 AddressInfo changedAddress = JSONObject.parseObject(addressOfJson, AddressInfo.class);
211 210
@@ -229,11 +228,6 @@ public class BuyerOrderMetaServiceImpl implements IBuyerOrderMetaService { @@ -229,11 +228,6 @@ public class BuyerOrderMetaServiceImpl implements IBuyerOrderMetaService {
229 } 228 }
230 229
231 return updateDeliveryAddress(buyerUid,orderCode,changedAddress,dbAddressInfo, hiddenAddressInDB, req.isFromPlatform()); 230 return updateDeliveryAddress(buyerUid,orderCode,changedAddress,dbAddressInfo, hiddenAddressInDB, req.isFromPlatform());
232 - }catch (Exception ex){  
233 - logger.warn("updateDeliveryAddressByErp occur exception req {} error {}", req, Throwables.getStackTraceAsString(ex));  
234 - }  
235 -  
236 - return null;  
237 } 231 }
238 232
239 BuyerOrderMeta getBuyerOrderMeta(int uid, long orderCode, String metaKey) { 233 BuyerOrderMeta getBuyerOrderMeta(int uid, long orderCode, String metaKey) {