RFR: JDK-8296226: Add constructors (String,Throwable) and (Throwable) to InvalidParameterException
Sean Mullan
mullan at openjdk.org
Thu Nov 3 13:49:07 UTC 2022
On Thu, 3 Nov 2022 09:07:44 GMT, Matthias Baesken <mbaesken at openjdk.org> wrote:
> This change adds constructors (String,Throwable) and (Throwable) to InvalidParameterException and uses them at a few places in the jdk coding.
The new constructors are underspecified. They should be consistent with the specification of the superclass constructors, which describe the behavior of `null` parameters and give more details on the error message. I would basically copy most of the description and params from the `Throwable` constructors. See, for example the `java.lang.IllegalArgumentException` constructors that take `Throwable` params.
-------------
PR: https://git.openjdk.org/jdk/pull/10966
More information about the security-dev
mailing list