/** * Gets a Closure that always throws an exception. * This could be useful during testing as a placeholder. * * @see org.apache.commons.collections4.functors.ExceptionClosure * * @param <E> the type that the closure acts on * @return the closure */ public static <E> Closure<E> exceptionClosure() { return ExceptionClosure.<E>exceptionClosure(); }