Skip to content

Commit

Permalink
FIX [ISSUE alibaba#12446] macInstance 补充日志 (alibaba#12447)
Browse files Browse the repository at this point in the history
  • Loading branch information
fuhouyu authored Aug 1, 2024
1 parent 3967c91 commit 4e42fe6
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,9 @@ private Mac getMacInstance(Key key) {
Mac instance = Mac.getInstance(jcaName);
instance.init(key);
return instance;
} catch (NoSuchAlgorithmException | InvalidKeyException e) {
} catch (NoSuchAlgorithmException e) {
throw new IllegalArgumentException("No Such Algorithm: " + jcaName);
} catch (InvalidKeyException e) {
throw new IllegalArgumentException("Invalid key: " + key);
}
}
Expand Down

0 comments on commit 4e42fe6

Please sign in to comment.