/** * Gets a Factory that always throws an exception. * This could be useful during testing as a placeholder. * * @see org.apache.commons.collections4.functors.ExceptionFactory * * @param <T> the type that the factory creates * @return the factory */ public static <T> Factory<T> exceptionFactory() { return ExceptionFactory.<T>exceptionFactory(); }