Annotation Type StandardException
Put on any class that extends some
java.lang.Throwable
type to add the 4 common exception constructors.
Specifically, all 4 constructors derived from the combinatorial explosion of String message
and Throwable cause
.
You may write any or all of these 4 constructors by hand; lombok will only generate the missing ones.
All but the full (String message, Throwable cause)
constructor are implemented as a this(msg, cause)
call; it is therefore
possibly to write code to run on construction by writing just the (String message, Throwable cause)
constructor.
-
Optional Element Summary
Modifier and TypeOptional ElementDescriptionSets the access level of the generated constuctors.
-
Element Details
-
access
AccessLevel accessSets the access level of the generated constuctors. By default, generated constructors arepublic
. Note: This does nothing if you write your own constructors (we won't change their access levels).- Returns:
- The constructors will be generated with this access modifier.
- Default:
PUBLIC
-