8296226: Add constructors (String,Throwable) and (Throwable) to InvalidParameterException

Reviewed-by: mullan, mdoerr
This commit is contained in:
Matthias Baesken 2022-11-07 07:50:12 +00:00
parent 51f8e9b0e1
commit 8836b92593
8 changed files with 60 additions and 13 deletions

View file

@ -87,7 +87,7 @@ abstract class RSAKeyPairGenerator extends KeyPairGeneratorSpi {
initialize(new RSAKeyGenParameterSpec(keySize,
RSAKeyGenParameterSpec.F4), random);
} catch (InvalidAlgorithmParameterException iape) {
throw new InvalidParameterException(iape.getMessage());
throw new InvalidParameterException(iape);
}
}