CircuitBreakerOpenException class final
Exception thrown when the Circuit Breaker is active.
This indicates that the network has been consistently failing, and the library is intentionally blocking requests to save resources.
Handling: You should respect the retryAfter duration and avoid attempting new network requests until that time has passed.
- Inheritance
-
- Object
- NetworkReachabilityException
- CircuitBreakerOpenException
Constructors
- CircuitBreakerOpenException(String message, {Duration? retryAfter})
-
Creates a new CircuitBreakerOpenException with the given
messageandretryAfter.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- message → String
-
A human-readable description of the error.
finalinherited
- retryAfter → Duration?
-
The suggested duration to wait before trying again.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited