WeixinException("-1","xxx")->WeixinException("xxx")

This commit is contained in:
jy.hu
2014-12-24 00:00:03 +08:00
parent 788869f183
commit 96b3080c2d
13 changed files with 36 additions and 46 deletions
@@ -137,11 +137,11 @@ public class MediaApi extends QyApi {
os = new FileOutputStream(file);
os.write(datas);
} else {
throw new WeixinException("-1", String.format(
throw new WeixinException(String.format(
"create file fail:%s", file.getAbsolutePath()));
}
} catch (IOException e) {
throw new WeixinException("-1", e.getMessage());
throw new WeixinException(e.getMessage());
} finally {
try {
if (os != null) {