throw json exceptions with cause

This commit is contained in:
REAndroid 2023-01-13 06:36:41 -05:00
parent e3e36c7866
commit 92a648612f

View File

@ -53,7 +53,7 @@ public class JsonXmlInputSource extends InputSource {
JSONObject jsonObject=new JSONObject(inputStream); JSONObject jsonObject=new JSONObject(inputStream);
resXmlBlock.fromJson(jsonObject); resXmlBlock.fromJson(jsonObject);
}catch (JSONException ex){ }catch (JSONException ex){
throw new IOException(inputSource.getAlias()+": "+ex.getMessage()); throw new IOException(inputSource.getAlias()+": "+ex.getMessage(), ex);
} }
return resXmlBlock; return resXmlBlock;
} }