/** * Let a plan fail. * @param cause The cause. */ public void fail(Throwable cause) { throw new PlanFailureException(null, cause); }
/** * Let a plan fail. */ public void fail() { throw new PlanFailureException(); }
/** * Let a plan fail. * @param message The message. * @param cause The cause. */ public void fail(String message, Throwable cause) { throw new PlanFailureException(message, cause); }