Package com.igormaznitsa.meta.annotation
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 ElementsModifier and TypeRequired ElementDescriptionClass
<? extends RuntimeException> The Class of the runtime exception. -
Optional Element Summary
Optional Elements
-
Element Details
-
value
Class<? extends RuntimeException> valueThe Class of the runtime exception.- Returns:
- the class of the runtime exception
-
reference
String referenceDescription of the exception.- Returns:
- the description as text.
- Default:
""
-