@Override
  public Object handle(TaskExecution aTask) throws Exception {
    float nextFloat = RandomUtils.nextFloat(0, 1);
    float probability = aTask.getFloat("probability",0.5f);
    Assert.isTrue(probability>=0 && probability<=1,"probability must be a value between 0 and 1");
    if(nextFloat <= probability) {
      throw new IllegalStateException("I'm a rogue exception");
    }
    return null;
  }
a {@link TaskHandler} implementaion which can
throw an exception based on a probabilty
value.

@author Arik Cohen
@since Mar 30, 2017
src/main/java/com/creactiviti/piper/taskhandler/random/Rogue.java