aboutsummaryrefslogtreecommitdiff
path: root/src/lombok/SneakyThrows.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/lombok/SneakyThrows.java')
-rw-r--r--src/lombok/SneakyThrows.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/lombok/SneakyThrows.java b/src/lombok/SneakyThrows.java
new file mode 100644
index 00000000..074dba80
--- /dev/null
+++ b/src/lombok/SneakyThrows.java
@@ -0,0 +1,12 @@
+package lombok;
+
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+
+@Target({ElementType.METHOD, ElementType.CONSTRUCTOR})
+@Retention(RetentionPolicy.SOURCE)
+public @interface SneakyThrows {
+ Class<? extends Throwable>[] value();
+}