On Thu, 29 Sep 2022 10:26:14 GMT, Daniel Fuchs <dfuchs at openjdk.org> wrote: >> You can use `Throwable::initCause` > > var mfue = new MalformedURLException(e.getMessage()); > mfue.initCause(e); > throw mfue; Thank you for your advice, I could fix it. ------------- PR: https://git.openjdk.org/jdk/pull/8155