前言
有些封装好的API把错误都屏蔽掉,直接返回某一个不明确的具体错误,让人感到困惑。
//code in SDK read-only
public static Data requestHandler(result) throws ApiException{
try{
resultEntity = JSONObject.parseObject(result);
}catch (Exception e){
throw new ApiException(SysEnums.SYS_ERR);
}
if(resultEntity == null || resultEntity .get("data") == null){
throw