public final class ExceptionClosure extends Object implements Closure, Serializable
Modifier and Type | Field and Description |
---|---|
static Closure |
INSTANCE
Singleton predicate instance
|
Modifier and Type | Method and Description |
---|---|
void |
execute(Object input)
Always throw an exception.
|
static Closure |
getInstance()
Factory returning the singleton instance.
|
public static final Closure INSTANCE
public static Closure getInstance()
public void execute(Object input)
execute
in interface Closure
input
- the input objectFunctorException
- alwaysCopyright © 2001–2015 The Apache Software Foundation. All rights reserved.