Steadybit logoReliability Hub
GitHubGitHub iconStart Free Trial
Steadybit logoReliability Hub

Java Method Exception

AttackAttack
Throw an exception in an public Java method
Targets:
JVM Instances
Install now

Java Method Exception

Throw an exception in an public Java method
AttackAttack
Install now

Java Method Exception

AttackAttack
Throw an exception in an public Java method
Install now

Java Method Exception

Throw an exception in an public Java method
AttackAttack
Install now
Go back to list

Introduction

Injects a RuntimeException into a public method.

Details

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.

Parameters

ParameterDescriptionDefault
Class NameWhich Java class should be attacked?
Method NameWhich public method should be attacked?
DurationHow long should the method be intercepted to throw an exception?30s
Erroneous Call RateHow many percent of calls should trigger an exception?100
Validate class and method nameShould the action fail if the specified class and method could not be found?true

More JVM Instance Actions

See all
Java Method Delay
Delay a public method call by the given duration
AttackAttack
JVM Instances
Start Using Steadybit Today

Get started with Steadybit, and you’ll get access to all of our features to discover the full power of Steadybit. Available for SaaS and on-prem!

Are you unsure where to begin?

No worries, our reliability experts are here to help: book a demo with them!

Statistics
-Stars
Tags
Application
JVM
Java
Exception
Homepage
hub.steadybit.com/extension/com.steadybit.extension_jvm
License
MIT
MaintainerSteadybit
Install now
Steadybit logoReliability Hub
Start Free Trial
© 2026 Steadybit GmbH. All rights reserved.
Twitter iconLinkedIn iconGitHub icon