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
      java.lang.Class<? extends java.lang.RuntimeException> value
      The Class of the runtime exception.
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      java.lang.String reference
      Description of the exception.
    • Element Detail

      • value

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

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