aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/after-delombok/StandardExceptions.java
diff options
context:
space:
mode:
Diffstat (limited to 'test/transform/resource/after-delombok/StandardExceptions.java')
-rw-r--r--test/transform/resource/after-delombok/StandardExceptions.java36
1 files changed, 36 insertions, 0 deletions
diff --git a/test/transform/resource/after-delombok/StandardExceptions.java b/test/transform/resource/after-delombok/StandardExceptions.java
new file mode 100644
index 00000000..d60fcaf2
--- /dev/null
+++ b/test/transform/resource/after-delombok/StandardExceptions.java
@@ -0,0 +1,36 @@
+class EmptyException extends Exception {
+ @java.lang.SuppressWarnings("all")
+ public EmptyException() {
+ this(null, null);
+ }
+ @java.lang.SuppressWarnings("all")
+ public EmptyException(final java.lang.String message) {
+ this(message, null);
+ }
+ @java.lang.SuppressWarnings("all")
+ public EmptyException(final java.lang.Throwable cause) {
+ this(cause != null ? cause.getMessage() : null, cause);
+ }
+ @java.lang.SuppressWarnings("all")
+ public EmptyException(final java.lang.String message, final java.lang.Throwable cause) {
+ super(message);
+ if (cause != null) super.initCause(cause);
+ }
+}
+class NoArgsException extends Exception {
+ public NoArgsException() {
+ }
+ @java.lang.SuppressWarnings("all")
+ protected NoArgsException(final java.lang.String message) {
+ this(message, null);
+ }
+ @java.lang.SuppressWarnings("all")
+ protected NoArgsException(final java.lang.Throwable cause) {
+ this(cause != null ? cause.getMessage() : null, cause);
+ }
+ @java.lang.SuppressWarnings("all")
+ protected NoArgsException(final java.lang.String message, final java.lang.Throwable cause) {
+ super(message);
+ if (cause != null) super.initCause(cause);
+ }
+} \ No newline at end of file