Skip to content

Commit d5f341a

Browse files
committed
add error message
1 parent 816d899 commit d5f341a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/com/alipay/global/api/BaseAlipayClient.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ private String genSignValue(String httpMethod, String path, String clientId, Str
135135
try {
136136
signatureValue = SignatureTool.sign(httpMethod, path, clientId, requestTime, reqBody, merchantPrivateKey);
137137
} catch (Exception e) {
138-
throw new AlipayApiException(e);
138+
throw new AlipayApiException("generate signature error", e);
139139
}
140140
return signatureValue;
141141
}
@@ -144,7 +144,7 @@ private boolean checkRspSign(String httpMethod, String path, String clientId, St
144144
try {
145145
return SignatureTool.verify(httpMethod, path, clientId, responseTime, rspBody, rspSignValue, alipayPublicKey);
146146
} catch (Exception e) {
147-
throw new AlipayApiException(e);
147+
throw new AlipayApiException("verify signature error", e);
148148
}
149149
}
150150

0 commit comments

Comments
 (0)