Annotation Type IfFailure


  • @Target(METHOD)
    @Retention(RUNTIME)
    @Documented
    public @interface IfFailure
    Annotation used to indicate what type of failure action should be performed if the annotated method was to return a failure error code or throw an exception.
    Author:
    Jerome Dochez
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      FailurePolicy value
      Returns the intent action to perform if the annotated method does not execute successfully (expressed by a faulty error code or an exception thrown).
    • Element Detail

      • value

        FailurePolicy value
        Returns the intent action to perform if the annotated method does not execute successfully (expressed by a faulty error code or an exception thrown).
        Returns:
        the intent action to perform