Specify the fully qualified class name in the Class Name parameter. For the Method Name parameter, provide only the method name, don't include the full method signature.
If the targeted method is overloaded, all overloaded variants will be affected.
The exception is thrown before the method is executed, so the attacked method will not be executed.
Compatibility
Verified on Java 8, 11, 17, 21 and 25 on any JVM application.
Parameters
Parameter
Description
Default
Class Name
Which Java class should be attacked?
Method Name
Which public method should be attacked?
Duration
How long should the method be intercepted to throw an exception?
30s
Erroneous Call Rate
(optional) How many percent of calls should trigger an exception?
100
Validate class and method name
(optional) Should the action fail if the specified class and method could not be found?