From 3e18007af326e1401282a1f97dded74a4b306726 Mon Sep 17 00:00:00 2001
From: Sander Koning throws clause of your methods, which is why this works.
- CAREFUL: Unlike other lombok transformations, you need to put lombok.jar on your classpath when - you run your program. -
Common use cases for when you want to opt out of the checked exception mechanism center around 2 situations:
Runnable - whatever exception propagates out of your run() method,
checked or not, it will be passed to the Thread's unhandled exception handler. Catching a checked exception and wrapping it
@@ -38,6 +35,9 @@
You can pass any number of exceptions to the @SneakyThrows annotation. If you pass no exceptions, you may throw any
exception sneakily.
+
+ NOTE: with lombok versions older than 0.10, unlike other lombok transformations, you need to put lombok.jar on your + classpath when you run your program.