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
A CallNotPermittedException signals that the CircuitBreaker is HALF_OPEN or OPEN and a call is not permitted to be executed.
See Also:
Serialized Form
  • Method Summary

    Modifier and Type Method Description
    static CallNotPermittedException createCallNotPermittedException​(CircuitBreaker circuitBreaker)
    Static method to construct a CallNotPermittedException with a CircuitBreaker.
    java.lang.String getCausingCircuitBreakerName()
    Returns the name of CircuitBreaker that caused this exception.

    Methods inherited from class java.lang.Throwable

    addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait