调整Exception类中的消息描述

This commit is contained in:
jinyu committed 2015-08-19 09:00:42 +08:00
1 parent 21e5947ca4
commit 841e1f76f1
10 files changed
+17 -16

No files matched your search

@@ -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);
}