This commit is contained in:
xiangwb
2017-11-22 15:19:16 +08:00
parent 035b39c87c
commit ffb5107315
16 changed files with 87 additions and 62 deletions
@@ -1,6 +1,7 @@
package com.xwbing.util;
import com.alibaba.fastjson.JSONObject;
import com.xwbing.exception.UtilException;
import org.apache.commons.beanutils.PropertyUtilsBean;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@@ -55,7 +56,7 @@ public class JSONUtil {
}
} catch (Exception e) {
LOGGER.error(e.getMessage());
throw new RuntimeException("不序列化对象转换错误");
throw new UtilException("不序列化对象转换错误");
}
return new JSONObject(params);
}