Annotation Type StandardException


@Target(TYPE) @Retention(SOURCE) public @interface 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

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Sets the access level of the generated constuctors.
  • Element Details

    • access

      AccessLevel access
      Sets the access level of the generated constuctors. By default, generated constructors are public. 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