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.RuntimeExceptionACallNotPermittedExceptionsignals 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 CallNotPermittedExceptioncreateCallNotPermittedException(CircuitBreaker circuitBreaker)Static method to construct aCallNotPermittedExceptionwith a CircuitBreaker.java.lang.StringgetCausingCircuitBreakerName()Returns the name ofCircuitBreakerthat caused this exception.
-
-
-
Method Detail
-
createCallNotPermittedException
public static CallNotPermittedException createCallNotPermittedException(CircuitBreaker circuitBreaker)
Static method to construct aCallNotPermittedExceptionwith a CircuitBreaker.- Parameters:
circuitBreaker- the CircuitBreaker.
-
getCausingCircuitBreakerName
public java.lang.String getCausingCircuitBreakerName()
Returns the name ofCircuitBreakerthat caused this exception.- Returns:
- the name of
CircuitBreakerthat caused this exception.
-
-