On Thu, 3 Nov 2022 09:07:44 GMT, Matthias Baesken <mbaes...@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

Reply via email to