Annotation Type ThrowsRuntimeException


@Documented @Target({METHOD,CONSTRUCTOR}) @Retention(CLASS) public @interface ThrowsRuntimeException
Allows to describe a runtime exception thrown by method.
Since:
1.1.0
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    The Class of the runtime exception.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Description of the exception.
  • Element Details

    • value

      Class<? extends RuntimeException> value
      The Class of the runtime exception.
      Returns:
      the class of the runtime exception
    • reference

      String reference
      Description of the exception.
      Returns:
      the description as text.
      Default:
      ""