Class InvocationRejectedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.util.concurrent.RejectedExecutionException
org.springframework.resilience.InvocationRejectedException
- All Implemented Interfaces:
Serializable
Exception thrown when a target will not get invoked due to a resilience policy,
such as the concurrency limit having been reached for a class/method annotated with
@ConcurrencyLimit.
Extends RejectedExecutionException as a common base class
with TaskRejectedException,
allowing for custom catch blocks to cover both Spring scenarios and
ExecutorService rejection exceptions.
- Since:
- 7.0.3
- Author:
- Juergen Hoeller
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionInvocationRejectedException(String msg, Object target) Create a newInvocationRejectedExceptionwith the specified detail message and target instance. -
Method Summary
Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
InvocationRejectedException
-
-
Method Details
-
getTarget
Return the target instance that was about to be invoked.
-