Annotation Type Roulette


  • @Retention(CLASS)
    @Target(METHOD)
    @Inherited
    public @interface Roulette
    Causes the annotated method to throw the indicated throwable with the specified probability.
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      double probability  
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      java.lang.Class<? extends java.lang.Throwable> exception  
      java.lang.String message  
    • Element Detail

      • probability

        double probability
      • exception

        java.lang.Class<? extends java.lang.Throwable> exception
        Default:
        java.lang.RuntimeException.class
      • message

        java.lang.String message
        Default:
        ""