On Thu, 29 Sep 2022 10:23:57 GMT, Daniel Fuchs <[email protected]> wrote:

>> The constructor "MalformedURLException (Throwable cause)" doens'nt exist. 
>> Isn't there any other method?
>
> You can use `Throwable::initCause`

var mfue = new MalformedURLException(e.getMessage());
mfue.initCause(e);
throw mfue;

-------------

PR: https://git.openjdk.org/jdk/pull/8155

Reply via email to