Class FailingCallable<T>
- java.lang.Object
-
- com.pervasivecode.utils.concurrent.testing.FailingCallable<T>
-
- Type Parameters:
T
- The type of value that would be returned if this class didn't always throw an exception.
- All Implemented Interfaces:
Callable<T>
public final class FailingCallable<T> extends Object implements Callable<T>
A Callable that always throws an exception when run, for testing error-handling code.
-
-
Field Summary
Fields Modifier and Type Field Description static String
FAILURE_MESSAGE
-
Constructor Summary
Constructors Constructor Description FailingCallable()
-
-
-
Field Detail
-
FAILURE_MESSAGE
public static final String FAILURE_MESSAGE
- See Also:
- Constant Field Values
-
-