非法参数的异常统一使用WxPayException

This commit is contained in:
Binary Wang
2017-07-31 17:42:17 +08:00
parent 0a06c4d1a1
commit 70d90c8b9b
11 changed files with 28 additions and 25 deletions

View File

@@ -160,11 +160,11 @@ public class WxPayConfig {
public SSLContext initSSLContext() throws WxPayException {
if (StringUtils.isBlank(mchId)) {
throw new IllegalArgumentException("请确保商户号mchId已设置");
throw new WxPayException("请确保商户号mchId已设置");
}
if (StringUtils.isBlank(this.keyPath)) {
throw new IllegalArgumentException("请确保证书文件地址keyPath已配置");
throw new WxPayException("请确保证书文件地址keyPath已配置");
}
InputStream inputStream;