class TaskExecutionContext {

    public void assertTaskIsLenient(Exception e) throws TaskNonLenientExecutionException {
        if (!lenient) {
            throw new TaskNonLenientExecutionException(e);
        }
    }

    public  TaskExecutionContext(Task<? extends TaskParameters> task, boolean lenient);

}