Buckets:

download
raw
901 Bytes
"""
ACGS-2 Circuit Breaker Exceptions
Constitutional Hash: 608508a9bd224290
This module defines exceptions for circuit breaker operations.
"""
from enhanced_agent_bus._compat.errors import ACGSBaseError
class CircuitBreakerOpen(ACGSBaseError):
"""Exception raised when circuit breaker is open and fallback not available."""
http_status_code = 503
error_code = "CIRCUIT_BREAKER_OPEN"
def __init__(
self,
service_name: str,
message: str = "Circuit breaker is open",
fallback_strategy: str = "fail_closed",
):
self.service_name = service_name
self.fallback_strategy = fallback_strategy
super().__init__(
f"{service_name}: {message} (fallback={fallback_strategy})",
details={"service_name": service_name, "fallback_strategy": fallback_strategy},
)
__all__ = [
"CircuitBreakerOpen",
]

Xet Storage Details

Size:
901 Bytes
·
Xet hash:
c7ac2b66181a908353e4b527173852b689382ecdf0e8e76aa0ecb4bfb79bb2bd

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.