Class CircuitOpenException

All Implemented Interfaces:
Serializable

public class CircuitOpenException extends RestInPeaceException
Thrown instead of making a call when its client's circuit breaker is open - the downstream has recently shown a high enough failure rate that this call is refused immediately, without attempting the network call (or even a cache lookup), rather than paying the cost of finding out it would have failed too. Not a RestInPeaceHttpException: no actual HTTP response exists for a call that was never attempted.

Never worth retrying within the same open window - every attempt would fail identically until the breaker's cooldown elapses - so @Retry treats this exception as immediately terminal instead of retryable, unlike a transport failure or a matching status code.

See Also:
  • Constructor Details

    • CircuitOpenException

      public CircuitOpenException(String message)
      Creates an exception with a message describing which client refused the call.
      Parameters:
      message - a description of which client's breaker is open