public final class ExceptionClosure<E> extends Object implements Closure<E>, Serializable
Modifier and Type | Field and Description |
---|---|
static Closure |
INSTANCE
Singleton predicate instance
|
Modifier and Type | Method and Description |
---|---|
static <E> Closure<E> |
exceptionClosure()
Factory returning the singleton instance.
|
void |
execute(E input)
Always throw an exception.
|
public static <E> Closure<E> exceptionClosure()
E
- the type that the closure acts onCopyright © 2001–2019 The Apache Software Foundation. All rights reserved.