On Fri, 29 Mar 2024 17:25:38 GMT, Harshitha Onkar <[email protected]> wrote:

> It is better to re-throw it as RuntimeException. Updated.

Not really…

If saving the image fails, we want to preserve *the original error message* 
which wasn't even thrown by this time. So printing stack trace in this 
particular is quite safe, the exception could be ignored completely.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/18523#discussion_r1548260371

Reply via email to