From 415e303ac283df8d694b311f4f8df08f6e79cf0e Mon Sep 17 00:00:00 2001 From: Reinier Zwitserloot Date: Fri, 16 Apr 2021 06:40:35 +0200 Subject: [pr 2702] finishing the `@StandardException` feature. * rewritten how it works a bit: Now compatible with parent exceptions that don't have the Throwable variants. * rewritten how it works a bit: You can now provide the full constructor only; the rest will forward to it. * fixing up style. * rewrite the docs. --- test/transform/resource/before/StandardExceptions.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test/transform/resource/before') diff --git a/test/transform/resource/before/StandardExceptions.java b/test/transform/resource/before/StandardExceptions.java index 939e1b6b..1316011d 100644 --- a/test/transform/resource/before/StandardExceptions.java +++ b/test/transform/resource/before/StandardExceptions.java @@ -1,8 +1,9 @@ +import lombok.AccessLevel; import lombok.experimental.StandardException; @StandardException class EmptyException extends Exception { } -@StandardException class NoArgsException extends Exception { +@StandardException(access = AccessLevel.PROTECTED) class NoArgsException extends Exception { public NoArgsException() { } } -- cgit