Annotation Interface Valid


@Retention(RUNTIME) @Target(PARAMETER) public @interface Valid
Annotation used to design arguments and members as data to be validated.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Get the text for the exception description if any if thrown.
  • Element Details

    • errorDescription

      String errorDescription
      Get the text for the exception description if any if thrown.
      Returns:
      Text for the exception description if any if thrown.
      Default:
      ""