Class CallNotPermittedException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- io.github.resilience4j.circuitbreaker.CallNotPermittedException
-
- All Implemented Interfaces:
java.io.Serializable
public class CallNotPermittedException extends java.lang.RuntimeException
ACallNotPermittedException
signals that the CircuitBreaker is HALF_OPEN or OPEN and a call is not permitted to be executed.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CallNotPermittedException
createCallNotPermittedException(CircuitBreaker circuitBreaker)
Static method to construct aCallNotPermittedException
with a CircuitBreaker.java.lang.String
getCausingCircuitBreakerName()
Returns the name ofCircuitBreaker
that caused this exception.
-
-
-
Method Detail
-
createCallNotPermittedException
public static CallNotPermittedException createCallNotPermittedException(CircuitBreaker circuitBreaker)
Static method to construct aCallNotPermittedException
with a CircuitBreaker.- Parameters:
circuitBreaker
- the CircuitBreaker.
-
getCausingCircuitBreakerName
public java.lang.String getCausingCircuitBreakerName()
Returns the name ofCircuitBreaker
that caused this exception.- Returns:
- the name of
CircuitBreaker
that caused this exception.
-
-