@Target(value=TYPE) @Retention(value=SOURCE) public @interface StandardException
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.
Modifier and Type | Optional Element and Description |
---|---|
AccessLevel |
access
Sets the access level of the generated constuctors.
|
public abstract AccessLevel access
public
.
Note: This does nothing if you write your own constructors (we won't change their access levels).Copyright © 2024. All rights reserved.