RFR: 2415: Update GitCommits::close to make sure it terminates all processes when an exception is thrown [v2]
Pavel Rappo
prappo at openjdk.org
Fri Nov 22 14:55:46 UTC 2024
On Fri, 22 Nov 2024 13:59:30 GMT, Erik Joelsson <erikj at openjdk.org> wrote:
> I suggested catching it mostly to be defensive. The Skara code base uses RuntimeExceptions quite a lot. In this case, there is no obvious place where one would be thrown though
I've had a look at those; I see what you mean.
A separate nit for later is calling those exceptions _errors_; this is not conventional in Java:
class GitHubApplicationError extends RuntimeException
"Error" strongly suggests a subclass of `java.lang.Error`. If you need some other word, but "Exception" is undesirable, you may want to call it "Failure".
-------------
PR Review Comment: https://git.openjdk.org/skara/pull/1699#discussion_r1854036589
More information about the skara-dev
mailing list