Frankenstein-Labs's picture
feat: add extensible orchestration foundation
91c4b21
Raw History Blame Contribute Delete
1.04 kB
"""Structured errors for CORTEX orchestration and provider boundaries."""
class CortexOrchestrationError(Exception):
category = "system_error"
class ProviderUnavailable(CortexOrchestrationError):
category = "provider_error"
class ProviderTimeout(CortexOrchestrationError):
category = "provider_error"
class ProviderAuthenticationError(CortexOrchestrationError):
category = "provider_error"
class ProviderRateLimited(CortexOrchestrationError):
category = "provider_error"
class InvalidToolInput(CortexOrchestrationError):
category = "user_error"
class InvalidProviderResponse(CortexOrchestrationError):
category = "provider_error"
class JobNotFound(CortexOrchestrationError):
category = "user_error"
class JobCancelled(CortexOrchestrationError):
category = "system_error"
class PolicyDenied(CortexOrchestrationError):
category = "policy_error"
class CapabilityUnavailable(CortexOrchestrationError):
category = "configuration_error"
__all__ = [name for name in globals() if not name.startswith("_")]