Class CallNotPermittedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.github.resilience4j.circuitbreaker.CallNotPermittedException
- All Implemented Interfaces:
Serializable
A
CallNotPermittedException signals that the CircuitBreaker is HALF_OPEN or OPEN and a
call is not permitted to be executed.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic CallNotPermittedExceptioncreateCallNotPermittedException(CircuitBreaker circuitBreaker) Static method to construct aCallNotPermittedExceptionwith a CircuitBreaker.Returns the name ofCircuitBreakerthat caused this exception.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Method Details
-
createCallNotPermittedException
public static CallNotPermittedException createCallNotPermittedException(CircuitBreaker circuitBreaker) Static method to construct aCallNotPermittedExceptionwith a CircuitBreaker.- Parameters:
circuitBreaker- the CircuitBreaker.
-
getCausingCircuitBreakerName
Returns the name ofCircuitBreakerthat caused this exception.- Returns:
- the name of
CircuitBreakerthat caused this exception.
-