aboutsummaryrefslogtreecommitdiff
path: root/website
diff options
context:
space:
mode:
authorSander Koning <askoning@gmail.com>2011-12-05 22:51:37 +0100
committerSander Koning <askoning@gmail.com>2011-12-05 22:51:37 +0100
commit3e18007af326e1401282a1f97dded74a4b306726 (patch)
treecef5df20eaec65b3b6efa3fe14caa056851a1c51 /website
parentc502ec24bba580181631146fa5cdee16ffe9ceaf (diff)
downloadlombok-3e18007af326e1401282a1f97dded74a4b306726.tar.gz
lombok-3e18007af326e1401282a1f97dded74a4b306726.tar.bz2
lombok-3e18007af326e1401282a1f97dded74a4b306726.zip
Update warning about @SneakyThrows requiring lombok.jar on the classpath (#306)
Diffstat (limited to 'website')
-rw-r--r--website/features/SneakyThrows.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/website/features/SneakyThrows.html b/website/features/SneakyThrows.html
index 583dc40d..b88c726d 100644
--- a/website/features/SneakyThrows.html
+++ b/website/features/SneakyThrows.html
@@ -20,9 +20,6 @@
or otherwise modify the thrown checked exception; it simply fakes out the compiler. On the JVM (class file) level, all exceptions, checked or not,
can be thrown regardless of the <code>throws</code> clause of your methods, which is why this works.
</p><p>
- <em><strong>CAREFUL: </strong></em>Unlike other lombok transformations, you need to put <strong>lombok.jar</strong> on your classpath when
- you run your program.
- </p><p>
Common use cases for when you want to opt out of the checked exception mechanism center around 2 situations:<br /><ul>
<li>A needlessly strict interface, such as <code>Runnable</code> - whatever exception propagates out of your <code>run()</code> method,
checked or not, it will be passed to the <code>Thread</code>'s unhandled exception handler. Catching a checked exception and wrapping it
@@ -38,6 +35,9 @@
</p><p>
You can pass any number of exceptions to the <code>@SneakyThrows</code> annotation. If you pass no exceptions, you may throw any
exception sneakily.
+ </p><p>
+ <em>NOTE: </em> with lombok versions older than 0.10, unlike other lombok transformations, you need to put <strong>lombok.jar</strong> on your
+ classpath when you run your program.
</div>
<div class="snippets">
<div class="pre">