News for hackers. Stuff that matters.
Re:Java 18 / JDK 18: General Availability by pritambarhate on Tuesday March 22, 2022 @11:32AM (#30767308)
>> 1. Catch, log

This is not as useless as it sounds. You can analyse the logs and find out why these exceptions are occurring. A lot of times these lead you to subtle bugs which you might not have noticed otherwise.

Re:Java 18 / JDK 18: General Availability by dfee on Tuesday March 22, 2022 @04:36PM (#30771177)
sure. or if using something like Vavr... catch a bunch of 'em all at once.

``` Try.success(foo. .map(...) .mapTry(...) .map(...) .mapTry(...) .onFailure(e -> LOGGER.warn("Failed %s", e) .get() ```