public abstract class Thrower extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
Thrower() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
shouldThrow(Class<?> i,
String methodName)
Check whether method should throw, called once for every method invocation.
|
static void |
startThrowing(Class<?> i,
String methodName)
Tell named method to start throwing exceptions.
|
static void |
startThrowingAfter(Class<?> i,
String methodName,
int goes)
Tell named method to start throwing exceptions after
being called a number of times.
|
static void |
stopThrowing(Class<?> i,
String methodName)
Tell named method to stop throwing exceptions.
|
public static void startThrowing(Class<?> i, String methodName)
i - Interface class objectmethodName - name in class.methodName formatpublic static void startThrowingAfter(Class<?> i, String methodName, int goes)
i - Interface class objectmethodName - name in class.methodName formatgoes - number of time method can be called before throwingpublic static void stopThrowing(Class<?> i, String methodName)
i - Interface class objectmethodName - name in class.methodName formatCopyright © 2000–2015 PanEris. All rights reserved.