调整Exception类中的消息描述

This commit is contained in:
jinyu
2015-08-19 09:00:42 +08:00
parent 21e5947ca4
commit 841e1f76f1
10 changed files with 17 additions and 16 deletions
@@ -200,7 +200,7 @@ public class MediaApi extends QyApi {
file.getAbsolutePath()));
}
} catch (IOException e) {
throw new WeixinException(e.getMessage());
throw new WeixinException(e);
} finally {
try {
if (os != null) {
@@ -272,7 +272,7 @@ public class MediaApi extends QyApi {
return new MediaDownloadResult(content,
ContentType.create(contentType), fileName);
} catch (IOException e) {
throw new WeixinException("I/O Error on getBody");
throw new WeixinException("I/O Error on getBody", e);
} catch (HttpClientException e) {
throw new WeixinException(e);
}